diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-22 11:40:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-22 12:27:33 +0100 |
commit | d29318c78a13f5de031d181b79a655d324ecdf25 (patch) | |
tree | 6efe63adb617d46c41d37fe432361815f92a76ff | |
parent | cd8e530dcd265e2bb67124326957dc4390cc6b0a (diff) |
Resolves: fdo#45869 we want page preview text to layout for print output
We want text to be positioned as it would be for the the high dpi printed
output, not as would be ideal for the 96dpi preview window itself. It is
supposed to be a print preview surely.
This should avoid getting different text positions/widths shown in the "page
preview" of calc than gets used when printed/exported to .pdf
Change-Id: Iea3acce3c1f2a7051007c22768329c52a7c1d4ee
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index dfc99dc65607..7f5b6653453c 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -1668,7 +1668,10 @@ void ScPrintFunc::MakeEditEngine() pEditEngine = new ScHeaderEditEngine( EditEngine::CreatePool(), sal_True ); pEditEngine->EnableUndo(false); - pEditEngine->SetRefDevice( pDev ); + //fdo#45869 we want text to be positioned as it would be for the the + //high dpi printed output, not as would be ideal for the 96dpi preview + //window itself + pEditEngine->SetRefDevice(pPrinter ? pPrinter : pDoc->GetRefDevice()); pEditEngine->SetWordDelimiters( ScEditUtil::ModifyDelimiters( pEditEngine->GetWordDelimiters() ) ); pEditEngine->SetControlWord( pEditEngine->GetControlWord() & ~EE_CNTRL_RTFSTYLESHEETS ); |