summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/workben/layout/editor.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolkit/workben/layout/editor.cxx b/toolkit/workben/layout/editor.cxx
index ceee0fdaba4d..f46afb62dfe1 100644
--- a/toolkit/workben/layout/editor.cxx
+++ b/toolkit/workben/layout/editor.cxx
@@ -296,7 +296,9 @@ public:
try {
mxContainer->addChild( pChild->mxWidget );
}
- catch( awt::MaxChildrenException ex ) {
+ catch( awt::MaxChildrenException& rEx) {
+ fprintf (stderr, "ERROR: MaxChildrenException: '%s'.\n",
+ rtl::OUStringToOString (rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
return false;
}
@@ -331,6 +333,7 @@ public:
} catch ( beans::UnknownPropertyException &rEx ) {
fprintf (stderr, "ERROR: widget reports that it has a property it cannot return: '%s' this normally means that someone screwed up their PROPERTY_SET_INFO macro usage.\n",
rtl::OUStringToOString (rEx.Message, RTL_TEXTENCODING_UTF8).getStr());
+ return false;
}
}
}