summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/frmview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/frmview.cxx')
-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 )
{