diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-22 09:08:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-12-22 09:08:43 +0100 |
commit | d6913850585eae90ea9179129fe7b60a2a4305ad (patch) | |
tree | 780695e21eb4e5155f2aa8b00efa358f48d437d8 | |
parent | 819c97592e26f1276e3614268e35c62af2fc9bbe (diff) |
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.
Change-Id: Iffb7d91ca78c09e2b43133f5049d52bd7dc4e730
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index e0ff3fd4e3f5..50087dc495de 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -204,8 +204,8 @@ void SwViewShell::DLPrePaint2(const vcl::Region& rRegion) mpBufferedOut = mpOut; mpOut = &(mpTargetPaintWindow->GetTargetOutputDevice()); } - else - // In case mpOut is used without buffering, need to set clipping. + else if (isOutputToWindow()) + // In case mpOut is used without buffering and we're not printing, need to set clipping. mpOut->SetClipRegion(rRegion); // remember original paint MapMode for wrapped FlyFrame paints |