summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2024-04-05 09:23:55 +0300
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-05-01 15:00:32 +0200
commita38a7684df4b48e9c3ac3acb5b0108e775e41ed8 (patch)
treec2627b328586844dd622d0a2981448f323e409d4
parent0f1b0cef8d105f55af73770ed39c2e32da33542b (diff)
related tdf#33603: sd: force invalidate notespanel
This is likely not the correct thing to do here, but is a working solution that fixes the view lagging behind the resize for now. Change-Id: I662e59cfd0f1259eeb10a49b6e9c5fd616afa7a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165808 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
-rw-r--r--sd/source/ui/inc/NotesPanelView.hxx1
-rw-r--r--sd/source/ui/view/NotesPanelView.cxx14
2 files changed, 3 insertions, 12 deletions
diff --git a/sd/source/ui/inc/NotesPanelView.hxx b/sd/source/ui/inc/NotesPanelView.hxx
index 4bb94590acbb..82b3631f3f50 100644
--- a/sd/source/ui/inc/NotesPanelView.hxx
+++ b/sd/source/ui/inc/NotesPanelView.hxx
@@ -38,7 +38,6 @@ class NotesPanelView final : public ::sd::SimpleOutlinerView
Idle aModifyIdle;
SdrTextObj* mpTextObj = nullptr;
- bool mbFirstPaint = true;
bool mbIgnoreNotifications = false;
/** stores the last used document color.
diff --git a/sd/source/ui/view/NotesPanelView.cxx b/sd/source/ui/view/NotesPanelView.cxx
index 49fa38a05d88..7aa10d0c1f31 100644
--- a/sd/source/ui/view/NotesPanelView.cxx
+++ b/sd/source/ui/view/NotesPanelView.cxx
@@ -149,16 +149,7 @@ void NotesPanelView::setNotesToDoc()
void NotesPanelView::Paint(const ::tools::Rectangle& rRect, ::sd::Window const* /*pWin*/)
{
- OutlinerView* pOlView = GetOutlinerView();
-
- if (pOlView)
- {
- pOlView->HideCursor();
- pOlView->Paint(rRect);
-
- pOlView->ShowCursor(mbFirstPaint);
- mbFirstPaint = false;
- }
+ maOutlinerView.Paint(rRect);
}
void NotesPanelView::Notify(SfxBroadcaster&, const SfxHint& rHint)
@@ -227,7 +218,8 @@ void NotesPanelView::onResize()
if (!aVisArea.IsEmpty()) // not when opening
{
- mrNotesPanelViewShell.InitWindows(Point(0, 0), aVisArea.GetSize(), aVisArea.TopLeft());
+ mrNotesPanelViewShell.InitWindows(Point(0, 0), aVisArea.GetSize(), aVisArea.TopLeft(),
+ true);
mrNotesPanelViewShell.UpdateScrollBars();
}
}