[libreoffice/f15] further adjust patch
Caolán McNamara
caolanm at fedoraproject.org
Thu Jan 12 16:58:40 UTC 2012
commit 7019d8dce12b4873327692fc7313ac64a5a96e1e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 12 16:58:35 2012 +0000
further adjust patch
...-39159-fdo-40482-temp-selection-print-doc.patch | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/0001-sw-fdo-39159-fdo-40482-temp-selection-print-doc.patch b/0001-sw-fdo-39159-fdo-40482-temp-selection-print-doc.patch
index 6545e68..e3de728 100644
--- a/0001-sw-fdo-39159-fdo-40482-temp-selection-print-doc.patch
+++ b/0001-sw-fdo-39159-fdo-40482-temp-selection-print-doc.patch
@@ -174,16 +174,14 @@ diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 8fad3d7..490dec8 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
-@@ -2439,7 +2439,19 @@
+@@ -2439,7 +2439,17 @@ SwDoc * SwXTextDocument::GetRenderDoc(
const TypeId aSwViewTypeId = TYPE(SwView);
if (rpView && rpView->IsA(aSwViewTypeId))
{
- SfxObjectShellRef xDocSh(((SwView*)rpView)->GetOrCreateTmpSelectionDoc());
++ OSL_ENSURE(m_pRenderData, "GetRenderDoc: no renderdata");
+ if (!m_pRenderData)
-+ {
-+ OSL_FAIL("GetRenderDoc: no renderdata");
+ return 0;
-+ }
+ SwView *const pSwView(static_cast<SwView *>(rpView));
+ SfxObjectShellLock xDocSh(m_pRenderData->GetTempDocShell());
+ if (!xDocSh.Is())
@@ -195,19 +193,19 @@ index 8fad3d7..490dec8 100644
if (xDocSh.Is())
{
pDoc = ((SwDocShell*)&xDocSh)->GetDoc();
-@@ -2555,7 +2567,10 @@
+@@ -2555,7 +2565,10 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
if (m_pRenderData && m_pRenderData->NeedNewViewOptionAdjust( *pWrtShell ) )
m_pRenderData->ViewOptionAdjustStop();
if (m_pRenderData && !m_pRenderData->IsViewOptionAdjust())
- m_pRenderData->ViewOptionAdjustStart( *pWrtShell, *pWrtShell->GetViewOptions(), rSelection.hasValue() );
+ {
+ m_pRenderData->ViewOptionAdjustStart(
-+ *pViewShell, *pViewShell->GetViewOptions() );
++ *pWrtShell, *pWrtShell->GetViewOptions() );
+ }
}
m_pRenderData->SetSwPrtOptions( new SwPrtOptions( C2U( bIsPDFExport ? "PDF export" : "Printing" ) ) );
-@@ -3823,21 +3838,16 @@
+@@ -3823,21 +3836,16 @@ void SwXDocumentPropertyHelper::onChange()
m_pDoc->SetModified();
}
More information about the scm-commits
mailing list