diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-25 23:55:05 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-26 00:05:03 +0200 |
commit | bfa3f8584b2f2492f5c0573f22e4ebd96d9a8af5 (patch) | |
tree | 97e2e3fdfb283f1e17d6166c08e17e0f1ddc662d /include/svx/ruler.hxx | |
parent | 81219456462e831cf931d7594657281b5c4c09a1 (diff) |
fdo#38144 Enhance snapping to markers, also snap to frame margins
Change-Id: I5de4f8bafecabf84224a0518d9515295d23d7321
Diffstat (limited to 'include/svx/ruler.hxx')
-rw-r--r-- | include/svx/ruler.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/ruler.hxx b/include/svx/ruler.hxx index a6faad748bc8..f017dafeb0f4 100644 --- a/include/svx/ruler.hxx +++ b/include/svx/ruler.hxx @@ -124,8 +124,8 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener void UpdateColumns(); void UpdateObject(); - // Normalize position to the ruler's tick value - void NormalizePosition(long& rValue) const; + // Convert position to stick to ruler ticks + long MakePositionSticky(long rValue, bool aSnapToFrameMargin = true) const; long PixelHAdjust(long lPos, long lPos2) const; long PixelVAdjust(long lPos, long lPos2) const; |