summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/dlgsnap.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-01-23 10:13:53 +0000
committerOliver Bolte <obo@openoffice.org>2007-01-23 10:13:53 +0000
commitb8e40b4e4561b6115c68d5a420a67865765fc8ec (patch)
treedadff4f1c0f941b1209b476b76ae70cbf2fd4a25 /sd/source/ui/dlg/dlgsnap.cxx
parent4e6ff903f17ba79d05cc4b5f1da5a0f94b801d0a (diff)
INTEGRATION: CWS mfdouble (1.9.4); FILE MERGED
2006/12/22 13:39:50 pl 1.9.4.1: #i71046# increase precision of MetricField and friends
Diffstat (limited to 'sd/source/ui/dlg/dlgsnap.cxx')
-rw-r--r--sd/source/ui/dlg/dlgsnap.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx
index 8c723c648626..8210b8c72cbc 100644
--- a/sd/source/ui/dlg/dlgsnap.cxx
+++ b/sd/source/ui/dlg/dlgsnap.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dlgsnap.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: kz $ $Date: 2006-12-12 17:04:25 $
+ * last change: $Author: obo $ $Date: 2007-01-23 11:13:53 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -113,25 +113,25 @@ SdSnapLineDlg::SdSnapLineDlg(
// Hier werden die Max- und MinWerte in Ahaengigkeit von der
// WorkArea, PoolUnit und der FieldUnit:
SetMetricValue( aMtrFldX, aWorkArea.Left(), ePoolUnit );
- long nValue = aMtrFldX.GetValue();
+ long nValue = static_cast<long>(aMtrFldX.GetValue());
nValue = Fraction( nValue ) / aUIScale;
aMtrFldX.SetMin( nValue );
aMtrFldX.SetFirst( nValue );
SetMetricValue( aMtrFldX, aWorkArea.Right()+1, ePoolUnit );
- nValue = aMtrFldX.GetValue();
+ nValue = static_cast<long>(aMtrFldX.GetValue());
nValue = Fraction( nValue ) / aUIScale;
aMtrFldX.SetMax( nValue );
aMtrFldX.SetLast( nValue );
SetMetricValue( aMtrFldY, aWorkArea.Top(), ePoolUnit );
- nValue = aMtrFldY.GetValue();
+ nValue = static_cast<long>(aMtrFldY.GetValue());
nValue = Fraction( nValue ) / aUIScale;
aMtrFldY.SetMin( nValue );
aMtrFldY.SetFirst( nValue );
SetMetricValue( aMtrFldY, aWorkArea.Bottom()+1, ePoolUnit );
- nValue = aMtrFldY.GetValue();
+ nValue = static_cast<long>(aMtrFldY.GetValue());
nValue = Fraction( nValue ) / aUIScale;
aMtrFldY.SetMax( nValue );
aMtrFldY.SetLast( nValue );
@@ -216,7 +216,7 @@ void SdSnapLineDlg::SetInputFields(BOOL bEnableX, BOOL bEnableY)
}
else if ( aMtrFldX.IsEnabled() )
{
- nXValue = aMtrFldX.GetValue();
+ nXValue = static_cast<long>(aMtrFldX.GetValue());
aMtrFldX.SetText(String());
aMtrFldX.Disable();
aFtX.Disable();
@@ -230,7 +230,7 @@ void SdSnapLineDlg::SetInputFields(BOOL bEnableX, BOOL bEnableY)
}
else if ( aMtrFldY.IsEnabled() )
{
- nYValue = aMtrFldY.GetValue();
+ nYValue = static_cast<long>(aMtrFldY.GetValue());
aMtrFldY.SetText(String());
aMtrFldY.Disable();
aFtY.Disable();