summaryrefslogtreecommitdiff
path: root/svx/source/form/fmshimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form/fmshimp.cxx')
-rw-r--r--svx/source/form/fmshimp.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 8ec0324ee6b7..9980f7946da6 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -1485,10 +1485,12 @@ void FmXFormShell::ExecuteSearch()
m_aSearchForms.swap( aEmpty );
::std::vector< OUString > aContextNames;
impl_collectFormSearchContexts_nothrow( m_pShell->GetCurPage()->GetForms(), OUString(), m_aSearchForms, aContextNames );
- OSL_POSTCOND( m_aSearchForms.size() == aContextNames.size(),
- "FmXFormShell::ExecuteSearch: nonsense!" );
+
if ( m_aSearchForms.size() != aContextNames.size() )
+ {
+ SAL_WARN ( "svx.form", "FmXFormShell::ExecuteSearch: nonsense!" );
return;
+ }
// filter out the forms which do not contain valid controls at all
{