Kaydet (Commit) dc399464 authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Andras Timar

tdf#93009 SwViewShell: fix printing of comments on the margin

Clipping was set not only in case of VCL-level double buffering, but
also during printing, which means comments were excluded from the
output.

(cherry picked from commit d6913850)

Change-Id: Iffb7d91ca78c09e2b43133f5049d52bd7dc4e730
Reviewed-on: https://gerrit.libreoffice.org/20872Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
(cherry picked from commit be005a7a)
üst c2fb34b7
...@@ -211,8 +211,8 @@ void SwViewShell::DLPrePaint2(const vcl::Region& rRegion) ...@@ -211,8 +211,8 @@ void SwViewShell::DLPrePaint2(const vcl::Region& rRegion)
mpBufferedOut = mpOut; mpBufferedOut = mpOut;
mpOut = &(mpTargetPaintWindow->GetTargetOutputDevice()); mpOut = &(mpTargetPaintWindow->GetTargetOutputDevice());
} }
else else if (isOutputToWindow())
// In case mpOut is used without buffering, need to set clipping. // In case mpOut is used without buffering and we're not printing, need to set clipping.
mpOut->SetClipRegion(rRegion); mpOut->SetClipRegion(rRegion);
// remember original paint MapMode for wrapped FlyFrame paints // remember original paint MapMode for wrapped FlyFrame paints
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment