[Libreoffice-commits] .: sw/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Fri Nov 18 10:23:13 PST 2011


 sw/source/ui/uno/unotxdoc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bdce622e0847b769a8d0d6e7b5f6f5f8e1ef3c0
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Nov 18 22:14:38 2011 +0400

    forgot to consider printing from html source

diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 4a1ef26..53e047c 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -194,7 +194,7 @@ SwPrintUIOptions * lcl_GetPrintUIOptions(
         SwPaM* pShellCrsr = pSh->GetCrsr();
         nCurrentPage = pShellCrsr->GetPageNum(sal_True, 0);
     }
-    else
+    else if (!bSwSrcView)
     {
         const SwPagePreView* pPreView = dynamic_cast< const SwPagePreView* >(pView);
         OSL_ENSURE(pPreView, "Unexpected type of the view shell");


More information about the Libreoffice-commits mailing list