Corrected problem related to wxSIZE_ALLOW_MINUS_ONE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -368,9 +368,9 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
int xx = x;
|
int xx = x;
|
||||||
int yy = y;
|
int yy = y;
|
||||||
|
|
||||||
if (x == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (x == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
xx = currentX;
|
xx = currentX;
|
||||||
if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
yy = currentY;
|
yy = currentY;
|
||||||
|
|
||||||
#if RADIOBTN_PARENT_IS_RADIOBOX
|
#if RADIOBTN_PARENT_IS_RADIOBOX
|
||||||
|
@@ -353,9 +353,9 @@ void wxSlider95::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
|
|
||||||
int currentX, currentY;
|
int currentX, currentY;
|
||||||
GetPosition(¤tX, ¤tY);
|
GetPosition(¤tX, ¤tY);
|
||||||
if (x == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (x == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
x1 = currentX;
|
x1 = currentX;
|
||||||
if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
y1 = currentY;
|
y1 = currentY;
|
||||||
|
|
||||||
AdjustForParentClientOrigin(x1, y1, sizeFlags);
|
AdjustForParentClientOrigin(x1, y1, sizeFlags);
|
||||||
|
@@ -324,9 +324,9 @@ void wxSliderMSW::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
|
|
||||||
int currentX, currentY;
|
int currentX, currentY;
|
||||||
GetPosition(¤tX, ¤tY);
|
GetPosition(¤tX, ¤tY);
|
||||||
if (x == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (x == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
x1 = currentX;
|
x1 = currentX;
|
||||||
if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
if (y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
|
||||||
y1 = currentY;
|
y1 = currentY;
|
||||||
|
|
||||||
AdjustForParentClientOrigin(x1, y1, sizeFlags);
|
AdjustForParentClientOrigin(x1, y1, sizeFlags);
|
||||||
|
Reference in New Issue
Block a user