summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-23 17:31:25 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-23 18:34:37 +0200
commitf76d21ca7350f024229169406b8d2eaa0bf825df (patch)
tree04a5322d8fbe6bebea9598fed67a89c178b2077f
parent81819527318c583ead77a15e700ebf81e9e41e6e (diff)
Fraction: Revert "boost::rational throws if 0 is passed as denominator"
-rw-r--r--sd/source/ui/view/frmview.cxx20
1 files changed, 4 insertions, 16 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 8f48aeca2f1f..470866dffd38 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -874,31 +874,19 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < :
}
else if ( pValue->Name == sUNO_View_GridSnapWidthXNumerator )
{
- sal_Int32 nValue = 0;
- pValue->Value >>= nValue;
- if (nValue != 0) // 0 is allowed, but it doesn't make any sense...
- aSnapGridWidthXNum = nValue;
+ pValue->Value >>= aSnapGridWidthXNum;
}
else if ( pValue->Name == sUNO_View_GridSnapWidthXDenominator )
{
- sal_Int32 nValue = 0;
- pValue->Value >>= nValue;
- if (nValue != 0)
- aSnapGridWidthXDom = nValue;
+ pValue->Value >>= aSnapGridWidthXDom;
}
else if ( pValue->Name == sUNO_View_GridSnapWidthYNumerator )
{
- sal_Int32 nValue = 0;
- pValue->Value >>= nValue;
- if (nValue != 0) // 0 is allowed, but it doesn't make any sense...
- aSnapGridWidthYNum = nValue;
+ pValue->Value >>= aSnapGridWidthYNum;
}
else if ( pValue->Name == sUNO_View_GridSnapWidthYDenominator )
{
- sal_Int32 nValue = 0;
- pValue->Value >>= nValue;
- if (nValue != 0)
- aSnapGridWidthYDom = nValue;
+ pValue->Value >>= aSnapGridWidthYDom;
}
else if (!bImpress && pValue->Name == sUNO_View_VisibleLayers )
{