summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-01-24 16:05:37 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-01-24 16:11:30 +0100
commitdb0f839920c38973f8448df0f74de7c4c95c832c (patch)
tree683912492d116cad88eca4177315ef16fbc84213 /sw/source/ui/uno
parent74a356c3464b56e94c2174a0e7a1d63de8f7071e (diff)
order database properties so that opening it in writer works (bnc#740032)
http://lists.freedesktop.org/archives/libreoffice/2012-January/024380.html
Diffstat (limited to 'sw/source/ui/uno')
-rw-r--r--sw/source/ui/uno/SwXDocumentSettings.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/ui/uno/SwXDocumentSettings.cxx b/sw/source/ui/uno/SwXDocumentSettings.cxx
index 7398dfd0f40d..c349631099f4 100644
--- a/sw/source/ui/uno/SwXDocumentSettings.cxx
+++ b/sw/source/ui/uno/SwXDocumentSettings.cxx
@@ -474,6 +474,8 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
case HANDLE_CURRENT_DATABASE_COMMAND:
{
SwDBData aData = mpDoc->GetDBData();
+ SAL_WARN_IF( aData.sDataSource.isEmpty(), "sw.uno",
+ "\"CurrentDatabaseCommand\" property possibly set before \"CurrentDatabaseDataSource\"" );
if ( rValue >>= aData.sCommand )
mpDoc->ChgDBData( aData );
}
@@ -481,6 +483,10 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
case HANDLE_CURRENT_DATABASE_COMMAND_TYPE:
{
SwDBData aData = mpDoc->GetDBData();
+ SAL_WARN_IF( aData.sDataSource.isEmpty(), "sw.uno",
+ "\"CurrentDatabaseCommandType\" property possibly set before \"CurrentDatabaseDataSource\"" );
+ SAL_WARN_IF( aData.sCommand.isEmpty(), "sw.uno",
+ "\"CurrentDatabaseCommandType\" property possibly set before \"CurrentDatabaseCommand\"" );
if ( rValue >>= aData.nCommandType )
mpDoc->ChgDBData( aData );
}