[Libreoffice-commits] .: Branch 'feature/cmclayout' - vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Apr 5 13:18:12 PDT 2012


 vcl/source/uipreviewer/previewer.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e8045af0187b796e636d626aae294b13bb834523
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 5 21:18:01 2012 +0100

    set a default title

diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 7a27729..23aee4a 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -83,6 +83,7 @@ int UIPreviewApp::Main()
         Dialog *pDialog = dynamic_cast<Dialog*>(pWindow);
         if (pDialog)
         {
+            pDialog->SetText(rtl::OUString("LibreOffice ui-previewer"));
             pDialog->Execute();
         }
         else
@@ -92,7 +93,7 @@ int UIPreviewApp::Main()
     }
     catch (const uno::Exception &e)
     {
-        fprintf(stderr, "fatal error: \n", rtl::OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr());
+        fprintf(stderr, "fatal error: %s\n", rtl::OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr());
     }
     return false;
 


More information about the Libreoffice-commits mailing list