summaryrefslogtreecommitdiff
path: root/svtools/source/uno/wizard/wizardshell.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-05-31 09:33:12 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-05-31 09:33:12 +0200
commitb078cc62e4e07c0259d54ff0cd3236fa3182d377 (patch)
treed0ffe16e05be8f23406984595eebed874d956877 /svtools/source/uno/wizard/wizardshell.cxx
parentccc9774139e48f266e40c99f7243f03f4a728517 (diff)
unoawt: for ill-behaved clients which do not provide a page, have an empty page as fallback
Diffstat (limited to 'svtools/source/uno/wizard/wizardshell.cxx')
-rw-r--r--svtools/source/uno/wizard/wizardshell.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/svtools/source/uno/wizard/wizardshell.cxx b/svtools/source/uno/wizard/wizardshell.cxx
index fb78e4a7bd11..28591e1616f6 100644
--- a/svtools/source/uno/wizard/wizardshell.cxx
+++ b/svtools/source/uno/wizard/wizardshell.cxx
@@ -232,7 +232,13 @@ namespace svt { namespace uno
::boost::shared_ptr< WizardPageController > pController( new WizardPageController( *this, m_xController, impl_stateToPageId( i_nState ) ) );
TabPage* pPage = pController->getTabPage();
- ENSURE_OR_RETURN( pPage != NULL, "WizardShell::createPage: illegal tab page!", NULL );
+ OSL_ENSURE( pPage != NULL, "WizardShell::createPage: illegal tab page!" );
+ if ( pPage == NULL )
+ {
+ // fallback for ill-behaved clients: empty page
+ pPage = new TabPage( this, 0 );
+ pPage->SetSizePixel( LogicToPixel( Size( 280, 185 ), MAP_APPFONT ) );
+ }
m_aPageControllers[ pPage ] = pController;
return pPage;
@@ -256,6 +262,7 @@ namespace svt { namespace uno
{
DBG_UNHANDLED_EXCEPTION();
}
+ // fallback for ill-behaved clients: the numeric state
return String::CreateFromInt32( i_nState );
}