Kaydet (Commit) 204a1157 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Caolán McNamara

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
üst fd28f630
...@@ -444,10 +444,10 @@ void OJoinController::saveTableWindows( ::comphelper::NamedValueCollection& o_rV ...@@ -444,10 +444,10 @@ void OJoinController::saveTableWindows( ::comphelper::NamedValueCollection& o_rV
aWindowData.put( "ComposedName", (*aIter)->GetComposedName() ); aWindowData.put( "ComposedName", (*aIter)->GetComposedName() );
aWindowData.put( "TableName", (*aIter)->GetTableName() ); aWindowData.put( "TableName", (*aIter)->GetTableName() );
aWindowData.put( "WindowName", (*aIter)->GetWinName() ); aWindowData.put( "WindowName", (*aIter)->GetWinName() );
aWindowData.put( "WindowTop", (*aIter)->GetPosition().Y() ); aWindowData.put( "WindowTop", static_cast<sal_Int32>(*aIter)->GetPosition().Y() );
aWindowData.put( "WindowLeft", (*aIter)->GetPosition().X() ); aWindowData.put( "WindowLeft", static_cast<sal_Int32>(*aIter)->GetPosition().X() );
aWindowData.put( "WindowWidth", (*aIter)->GetSize().Width() ); aWindowData.put( "WindowWidth", static_cast<sal_Int32>(*aIter)->GetSize().Width() );
aWindowData.put( "WindowHeight", (*aIter)->GetSize().Height() ); aWindowData.put( "WindowHeight", static_cast<sal_Int32>(*aIter)->GetSize().Height() );
aWindowData.put( "ShowAll", (*aIter)->IsShowAll() ); aWindowData.put( "ShowAll", (*aIter)->IsShowAll() );
const ::rtl::OUString sTableName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Table" ) ) + ::rtl::OUString::valueOf( i ) ); const ::rtl::OUString sTableName( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Table" ) ) + ::rtl::OUString::valueOf( i ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment