summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-05 21:18:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:14 +0100
commit851a41ff88707f72e818233afd1c6cb2cf73f481 (patch)
tree54ba7e2a4c6c2da750a8da54a759b3774e9beaab /vcl/source
parent8ccb7fe507677704d170d45ebb735acfa48f4950 (diff)
set a default title
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/uipreviewer/previewer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 7a27729f2c96..23aee4a8bc56 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;