Kaydet (Commit) b7f448de authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I2f81497a830c8e1802ffbeeb362cea16e8b731d7
üst c3b0c8f4
...@@ -1278,7 +1278,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP ...@@ -1278,7 +1278,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP
{ {
// make position relative to rControlRegion // make position relative to rControlRegion
Point aPos = rPos - rControlRegion.TopLeft(); Point aPos = rPos - rControlRegion.TopLeft();
rIsInside = sal_False; rIsInside = false;
sal_Bool bHorizontal = ( nPart == PART_BUTTON_LEFT || nPart == PART_BUTTON_RIGHT ); sal_Bool bHorizontal = ( nPart == PART_BUTTON_LEFT || nPart == PART_BUTTON_RIGHT );
...@@ -1322,7 +1322,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP ...@@ -1322,7 +1322,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP
{ {
case PART_BUTTON_LEFT: case PART_BUTTON_LEFT:
if ( !bPlatinumStyle && qRectSubLine.contains( aPos.getX(), aPos.getY() ) ) if ( !bPlatinumStyle && qRectSubLine.contains( aPos.getX(), aPos.getY() ) )
rIsInside = sal_True; rIsInside = true;
else if ( bTwoSubButtons ) else if ( bTwoSubButtons )
{ {
qRectAddLine.setWidth( qRectAddLine.width() / 2 ); qRectAddLine.setWidth( qRectAddLine.width() / 2 );
...@@ -1332,7 +1332,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP ...@@ -1332,7 +1332,7 @@ sal_Bool KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nP
case PART_BUTTON_UP: case PART_BUTTON_UP:
if ( !bPlatinumStyle && qRectSubLine.contains( aPos.getX(), aPos.getY() ) ) if ( !bPlatinumStyle && qRectSubLine.contains( aPos.getX(), aPos.getY() ) )
rIsInside = sal_True; rIsInside = true;
else if ( bTwoSubButtons ) else if ( bTwoSubButtons )
{ {
qRectAddLine.setHeight( qRectAddLine.height() / 2 ); qRectAddLine.setHeight( qRectAddLine.height() / 2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment