diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-10-27 22:46:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-10-27 22:47:45 +0200 |
commit | ffe9d3613ca2cbe54703a77d30dc62e25734a28f (patch) | |
tree | 78b818e9bca3cfbeb45cff102fcce679d4dfc506 /toolkit | |
parent | 95ed6bc10cadf3706548cb297cceb9eaab6ff05a (diff) |
Trace one catch, add a return false in another one
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/workben/layout/editor.cxx | 5 |
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; } } } |