summaryrefslogtreecommitdiff
path: root/vcl/unx/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-05-07 12:24:33 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-05-07 12:24:33 +0000
commitca53dc35e86d03a5707a4be574ef9597a7998cfb (patch)
tree25472d0e78361e120960a92132d022f4be692ca1 /vcl/unx/source
parent7c9ecc74dbfd10b73278ff6051e4768a0b05dc3f (diff)
#98940# explicitly cast to correct sign
Diffstat (limited to 'vcl/unx/source')
-rw-r--r--vcl/unx/source/window/salframe.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx
index 72b84e58805d..5e9c268e3758 100644
--- a/vcl/unx/source/window/salframe.cxx
+++ b/vcl/unx/source/window/salframe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salframe.cxx,v $
*
- * $Revision: 1.128 $
+ * $Revision: 1.129 $
*
- * last change: $Author: pl $ $Date: 2002-04-23 13:19:51 $
+ * last change: $Author: pl $ $Date: 2002-05-07 13:24:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1260,25 +1260,25 @@ SalFrame::SetWindowState( const SalFrameState *pState )
&& aPosSize.GetHeight() <= rScreenSize.Height() )
{
// adjust position so that frame fits onto screen
- if( aPosSize.Right()+maGeometry.nRightDecoration >= rScreenSize.Width() )
+ if( aPosSize.Right()+(long)maGeometry.nRightDecoration >= rScreenSize.Width() )
{
aPosSize.Move( (long)rScreenSize.Width() - (long)aPosSize.Right() - (long)maGeometry.nRightDecoration, 0 );
nGravity = EastGravity;
bAdjusted = true;
}
- if( aPosSize.Bottom()+maGeometry.nBottomDecoration >= rScreenSize.Height() )
+ if( aPosSize.Bottom()+(long)maGeometry.nBottomDecoration >= rScreenSize.Height() )
{
aPosSize.Move( 0, (long)rScreenSize.Height() - (long)aPosSize.Bottom() - (long)maGeometry.nBottomDecoration );
nGravity = nGravity == EastGravity ? SouthEastGravity : SouthGravity;
bAdjusted = true;
}
- if( aPosSize.Left() < maGeometry.nLeftDecoration )
+ if( aPosSize.Left() < (long)maGeometry.nLeftDecoration )
{
aPosSize.Move( (long)maGeometry.nLeftDecoration - (long)aPosSize.Left(), 0 );
nGravity = ( nGravity == SouthGravity || nGravity == SouthEastGravity ) ? SouthWestGravity : WestGravity;
bAdjusted = true;
}
- if( aPosSize.Top() < maGeometry.nTopDecoration )
+ if( aPosSize.Top() < (long)maGeometry.nTopDecoration )
{
aPosSize.Move( 0, (long)maGeometry.nTopDecoration - (long)aPosSize.Top() );
nGravity =