diff options
author | Katarina Behrens <bubli@bubli.org> | 2014-06-10 00:02:25 +0200 |
---|---|---|
committer | Katarina Behrens <bubli@bubli.org> | 2014-06-10 00:05:18 +0200 |
commit | 25678ae57d01ff8d07760d8bf9b98ed5da9b349c (patch) | |
tree | 7c26b2d082d529e1ce3c152295db38fbac24c5aa | |
parent | 64992cc56e0e8a480e33b847d3a327f8229535d2 (diff) |
fdo#77987, part 2: snap line coordinates can be negative
thus, use signed integers here
Change-Id: I8de1662680bd6e5dc9d42d633fa591dacc260a9b
-rw-r--r-- | sd/source/ui/dlg/dlgsnap.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/func/fusnapln.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx index 5afafe381cd7..089c4722ecae 100644 --- a/sd/source/ui/dlg/dlgsnap.cxx +++ b/sd/source/ui/dlg/dlgsnap.cxx @@ -102,8 +102,8 @@ SdSnapLineDlg::SdSnapLineDlg( m_pMtrFldY->SetLast( nValue ); // set values - nXValue = ((const SfxUInt32Item&) rInAttrs.Get(ATTR_SNAPLINE_X)).GetValue(); - nYValue = ((const SfxUInt32Item&) rInAttrs.Get(ATTR_SNAPLINE_Y)).GetValue(); + nXValue = ((const SfxInt32Item&) rInAttrs.Get(ATTR_SNAPLINE_X)).GetValue(); + nYValue = ((const SfxInt32Item&) rInAttrs.Get(ATTR_SNAPLINE_Y)).GetValue(); nXValue = Fraction(nXValue) / aUIScale; nYValue = Fraction(nYValue) / aUIScale; SetMetricValue( *m_pMtrFldX, nXValue, SFX_MAPUNIT_100TH_MM); diff --git a/sd/source/ui/func/fusnapln.cxx b/sd/source/ui/func/fusnapln.cxx index 79f438a54379..8e3548e86c27 100644 --- a/sd/source/ui/func/fusnapln.cxx +++ b/sd/source/ui/func/fusnapln.cxx @@ -109,8 +109,8 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) pPV->LogicToPagePos(aLinePos); bLineExist = true; } - aNewAttr.Put(SfxUInt32Item(ATTR_SNAPLINE_X, aLinePos.X())); - aNewAttr.Put(SfxUInt32Item(ATTR_SNAPLINE_Y, aLinePos.Y())); + aNewAttr.Put(SfxInt32Item(ATTR_SNAPLINE_X, aLinePos.X())); + aNewAttr.Put(SfxInt32Item(ATTR_SNAPLINE_Y, aLinePos.Y())); SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); boost::scoped_ptr<AbstractSdSnapLineDlg> pDlg(pFact ? pFact->CreateSdSnapLineDlg( NULL, aNewAttr, mpView ) : 0); |