diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-03 17:02:26 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-02-06 03:43:12 +0000 |
commit | a51faf9ead8ab3797e9a70bf2e487f26643ce9d0 (patch) | |
tree | e294949bdd2b954ca4d78a74463f1253ae514f07 /sw/source/uibase/docvw/SidebarWin.cxx | |
parent | 5596b3f86f753b7ae0a262ccea84c6a61bdc9ca2 (diff) |
lok: Emit modify comment callback when anchor changes
Change-Id: Ibe4a66b93768eb446a04cab8cfdd4bdebee13d1f
Reviewed-on: https://gerrit.libreoffice.org/33878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw/SidebarWin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/SidebarWin.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index bf2523152c70..6ec2dc98e00d 100644 --- a/sw/source/uibase/docvw/SidebarWin.cxx +++ b/sw/source/uibase/docvw/SidebarWin.cxx @@ -183,6 +183,7 @@ SwSidebarWin::SwSidebarWin(SwEditWin& rEditWin, , mPosSize() , mAnchorRect() , mPageBorder(0) + , mbAnchorRectChanged(false) , mbMouseOver(false) , mLayoutStatus(SwPostItHelper::INVISIBLE) , mbReadonly(false) @@ -509,6 +510,8 @@ void SwSidebarWin::SetPosSizePixelRect(long nX, long nY, long nWidth, long nHeig const SwRect& aAnchorRect, const long aPageBorder) { mPosSize = Rectangle(Point(nX,nY),Size(nWidth,nHeight)); + if (!mAnchorRect.IsEmpty() && mAnchorRect != aAnchorRect) + mbAnchorRectChanged = true; mAnchorRect = aAnchorRect; mPageBorder = aPageBorder; } |