Blame SOURCES/0285-sc-lok-annotations-paint-range-and-anchor-overlay.patch

135360
From 6c76b4b478428d2326ea672d1bd87d1fa9654797 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Fri, 6 Nov 2015 17:12:46 +0100
135360
Subject: [PATCH 285/398] sc lok annotations: paint range and anchor overlay
135360
135360
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
135360
(cherry picked from commit 5f68759810496ff3fadf5a883203449772c7392f)
135360
---
135360
 sw/source/uibase/docvw/SidebarWin.cxx | 15 +++++++++++++++
135360
 1 file changed, 15 insertions(+)
135360
135360
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
135360
index 038bdb243e65..e3e238715365 100644
135360
--- a/sw/source/uibase/docvw/SidebarWin.cxx
135360
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
135360
@@ -263,6 +263,21 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle
135360
 
135360
         rRenderContext.Pop();
135360
     }
135360
+
135360
+    const drawinglayer::geometry::ViewInformation2D aViewInformation;
135360
+    std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice(rRenderContext, aViewInformation));
135360
+
135360
+    // drawinglayer sets the map mode to pixels, not needed here.
135360
+    rRenderContext.Pop();
135360
+    // Work in document-global twips.
135360
+    rRenderContext.Pop();
135360
+    if (mpAnchor)
135360
+        pProcessor->process(mpAnchor->getOverlayObjectPrimitive2DSequence());
135360
+    if (mpTextRangeOverlay)
135360
+        pProcessor->process(mpTextRangeOverlay->getOverlayObjectPrimitive2DSequence());
135360
+    rRenderContext.Push(PushFlags::NONE);
135360
+    pProcessor.reset();
135360
+    rRenderContext.Push(PushFlags::NONE);
135360
 }
135360
 
135360
 void SwSidebarWin::Draw(OutputDevice* pDev, const Point& rPt, const Size& rSz, sal_uLong nInFlags)
135360
-- 
135360
2.12.0
135360