summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-09-11 17:20:29 +0200
committerAndras Timar <andras.timar@collabora.com>2015-09-19 21:32:12 +0200
commit42fb55556a408866e4725a738c9bb9b73b6963ba (patch)
tree7515a8f3efee71565836ed54d759c5aa1a331e1c
parent251ed2b5bbc8ca2cf306de207cc34f2fe12ca572 (diff)
tdf#92145: Writer table rows/columns can't be resized
with disabled rulers. (This fix was suggested by Tomaž Vajngerl.) (Cherry-picked from the commit ed031895f6f5b361cccc6811b53c6f2b9cfc3e23) Conflicts: svtools/source/control/ruler.cxx Change-Id: I161237cdb4941c0eaf934223b078acd94d72e21d Reviewed-on: https://gerrit.libreoffice.org/18507 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--svtools/source/control/ruler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index d4b9374a51d9..2d4486c1b623 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2344,6 +2344,12 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
// update ruler
if ( mbFormat )
{
+ if (!IsReallyVisible())
+ {
+ // set mpData for ImplDocHitTest()
+ ImplFormat(*this);
+ }
+
Invalidate(INVALIDATE_NOERASE);
}