Apache OpenOffice (AOO) Bugzilla – Issue 87016
to-be-DEV300_m3: svx/source/table/tablemodel.cxx
Last modified: 2008-04-29 11:48:18 UTC
/home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablemodel.cxx /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h: In member function 'void _STL::vector<_Tp, _Alloc>::_M_insert_dispatch(_Tp*, _Integer, _Integer, const _STL::__true_type&) [with _Integer = int, _Tp = rtl::Reference<sdr::table::TableRow>, _Alloc = _STL::allocator<rtl::Reference<sdr::table::TableRow> >]': /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:388: instantiated from 'void _STL::vector<_Tp, _Alloc>::insert(_Tp*, _InputIterator, _InputIterator) [with _InputIterator = int, _Tp = rtl::Reference<sdr::table::TableRow>, _Alloc = _STL::allocator<rtl::Reference<sdr::table::TableRow> >]' /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablemodel.cxx:128: instantiated from 'sal_Int32 sdr::table::insert_range(Vec&, sal_Int32, sal_Int32) [with Vec = _STL::vector<rtl::Reference<sdr::table::TableRow>, _STL::allocator<rtl::Reference<sdr::table::TableRow> > >, Iter = rtl::Reference<sdr::table::TableRow>*]' /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablemodel.cxx:265: instantiated from here /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:374: error: invalid conversion from 'int' to 'sdr::table::TableRow*' /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:374: error: initializing argument 1 of 'rtl::Reference<reference_type>::Reference(reference_type*) [with reference_type = sdr::table::TableRow]' /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h: In member function 'void _STL::vector<_Tp, _Alloc>::_M_insert_dispatch(_Tp*, _Integer, _Integer, const _STL::__true_type&) [with _Integer = int, _Tp = rtl::Reference<sdr::table::TableColumn>, _Alloc = _STL::allocator<rtl::Reference<sdr::table::TableColumn> >]': /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:388: instantiated from 'void _STL::vector<_Tp, _Alloc>::insert(_Tp*, _InputIterator, _InputIterator) [with _InputIterator = int, _Tp = rtl::Reference<sdr::table::TableColumn>, _Alloc = _STL::allocator<rtl::Reference<sdr::table::TableColumn> >]' /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablemodel.cxx:128: instantiated from 'sal_Int32 sdr::table::insert_range(Vec&, sal_Int32, sal_Int32) [with Vec = _STL::vector<rtl::Reference<sdr::table::TableColumn>, _STL::allocator<rtl::Reference<sdr::table::TableColumn> > >, Iter = rtl::Reference<sdr::table::TableColumn>*]' /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablemodel.cxx:298: instantiated from here /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:374: error: invalid conversion from 'int' to 'sdr::table::TableColumn*' /home/oo/BuildDir/ooo_DEV300_m3_src/solver/300/unxlngx6.pro/inc/stl/stl/_vector.h:374: error: initializing argument 1 of 'rtl::Reference<reference_type>::Reference(reference_type*) [with reference_type = sdr::table::TableColumn]' dmake: Error code 1, while making '../../unxlngx6.pro/slo/tablemodel.obj' ERROR: Error 65280 occurred while making /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table
Christian, Any idea how to fix this?
I'm afraid I do not get this done as masterfix for m3, therefore reassinging to code owner.
Created attachment 52094 [details] excerpt from #dev.openoffice.org IRC talk concerning this issue
I try to think of a patch, but I don't have this plattform to build so I would need further assistance
Created attachment 52097 [details] Possible patch to fix this issue
Compiles without problems. But the next file: /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablehandles.cxx: In member function 'sal_Int32 sdr::table::TableEdgeHdl::GetValidDragOffset(const SdrDragStat&) const': /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table/tablehandles.cxx:137: error: no matching function for call to 'max(long int, const sal_Int32&)' dmake: Error code 1, while making '../../unxlngx6.pro/slo/tablehandles.obj' ERROR: Error 65280 occurred while making /home/oo/BuildDir/ooo_DEV300_m3_src/svx/source/table oo@octopus:~/BuildDir/ooo_DEV300_m3_src/svx/source/table>
Created attachment 52099 [details] patch to fix the second break
The line should read: return std::min( std::max( static_cast<sal_Int32>(mbHorizontal ? rDrag.GetDY() : rDrag.GetDX()), mnMin ), mnMax );
Both fixes committed as masterfix for DEV300 m3.
close issue.