diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-01-21 07:48:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-21 15:17:42 +0000 |
commit | 204a1157130e94d683d9aaefd7268f28c398ef23 (patch) | |
tree | e94533cbef01f8118a71b840f6477e89b91201b6 /dbaccess/source/ui/querydesign | |
parent | fd28f6300e08b3c167c8b79c0eba5352ea9f7e12 (diff) |
Fix property type / default value mismatch
Fixes:
Error: caught an exception
message: Invalid value type for 'WindowTop'.
Expected: long
Found: hyper
From File dbaccess/source/ui/querydesign/querycontroller.cxx at Line 1722
when editing a query
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinController.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx index 3f3059967447..c00580c72176 100644 --- a/dbaccess/source/ui/querydesign/JoinController.cxx +++ b/dbaccess/source/ui/querydesign/JoinController.cxx @@ -444,10 +444,10 @@ void OJoinController::saveTableWindows( ::comphelper::NamedValueCollection& o_rV aWindowData.put( "ComposedName", (*aIter)->GetComposedName() ); aWindowData.put( "TableName", (*aIter)->GetTableName() ); aWindowData.put( "WindowName", (*aIter)->GetWinName() ); - aWindowData.put( "WindowTop", (*aIter)->GetPosition().Y() ); - aWindowData.put( "WindowLeft", (*aIter)->GetPosition().X() ); - aWindowData.put( "WindowWidth", (*aIter)->GetSize().Width() ); - aWindowData.put( "WindowHeight", (*aIter)->GetSize().Height() ); + aWindowData.put( "WindowTop", static_cast<sal_Int32>(*aIter)->GetPosition().Y() ); + aWindowData.put( "WindowLeft", static_cast<sal_Int32>(*aIter)->GetPosition().X() ); + aWindowData.put( "WindowWidth", static_cast<sal_Int32>(*aIter)->GetSize().Width() ); + aWindowData.put( "WindowHeight", static_cast<sal_Int32>(*aIter)->GetSize().Height() ); aWindowData.put( "ShowAll", (*aIter)->IsShowAll() ); const ::rtl::OUString sTableName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Table" ) ) + ::rtl::OUString::valueOf( i ) ); |