summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2016-10-19 22:08:06 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2017-01-17 13:46:53 +0000
commit457642759ff81aacf1451dd9025846799d0b978e (patch)
treec96cf8f50d82423494959ea51d8b0d88ee070de1
parentffb1fe4f434a48358a18c0af2c44a112d9ad04be (diff)
LOK: Calc: notes: on edit mode starts/ends: missing tiles invalidation
On edit mode starts/ends, when a note is hidden, tiles, only the note tail belongs to, are not invalidated. Change-Id: I69487f428a121fc05da99d3b06786afd4f834766 Reviewed-on: https://gerrit.libreoffice.org/30101 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
-rw-r--r--sc/source/ui/drawfunc/futext3.cxx2
-rw-r--r--sc/source/ui/view/viewfun6.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/futext3.cxx b/sc/source/ui/drawfunc/futext3.cxx
index 6046e4caa774..84debf723234 100644
--- a/sc/source/ui/drawfunc/futext3.cxx
+++ b/sc/source/ui/drawfunc/futext3.cxx
@@ -119,6 +119,8 @@ void FuText::StopEditMode()
if( pNote )
{
+ ScTabView::OnLOKNoteStateChanged( pNote );
+
// hide the caption object if it is in hidden state
pNote->ShowCaptionTemp( aNotePos, false );
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index ae40363227b9..92a18048dbf0 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -509,6 +509,8 @@ void ScViewFunc::EditNote()
{
ScrollToObject( pCaption ); // make object fully visible
pFuText->SetInEditMode( pCaption );
+
+ ScTabView::OnLOKNoteStateChanged( pNote );
}
}
}