https://bugs.documentfoundation.org/show_bug.cgi?id=89872

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |markus.mohrhard@googlemail.
                   |                            |com

--- Comment #2 from Julien Nabet <[email protected]> ---
Considering this bt:
#0  ScMatrixImpl::IsString (this=0x7071af0, nC=0, nR=3) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/scmatrix.cxx:679
#1  0x00002aaac9fd86da in ScMatrixImpl::IsString (this=0x7071af0, nIndex=3) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/scmatrix.cxx:669
#2  0x00002aaac9fdd216 in ScMatrix::IsString (this=0x729c030, nIndex=3) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/scmatrix.cxx:2319
#3  0x00002aaac9f54fd9 in ScInterpreter::GetNumberSequenceArray
(this=0x7676da0, nParamCount=1 '\001', rArray=std::__debug::vector of length 3,
capacity 10 = {...})
    at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/interpr3.cxx:3720
#4  0x00002aaac9f52989 in ScInterpreter::ScMedian (this=0x7676da0) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/interpr3.cxx:3350
#5  0x00002aaac9f6b58d in ScInterpreter::Interpret (this=0x7676da0) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/tool/interpr4.cxx:4158
#6  0x00002aaac9d108fe in ScFormulaCell::InterpretTail (this=0x2d41240,
eTailParam=ScFormulaCell::SCITP_NORMAL)
    at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/data/formulacell.cxx:1736
#7  0x00002aaac9d0f6dc in ScFormulaCell::Interpret (this=0x2d41240) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/data/formulacell.cxx:1469
#8  0x00002aaac9d12eac in ScFormulaCell::MaybeInterpret (this=0x2d41240) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/data/formulacell.cxx:2354
#9  0x00002aaac9d13122 in ScFormulaCell::GetValue (this=0x2d41240) at
/home/julien/compile-libreoffice/libreoffice/sc/source/core/data/formulacell.cxx:2417
#10 0x00002aaaca7608d8 in ScOutputData::FindChanged (this=0x7fffffff0c00) at
/home/julien/compile-libreoffice/libreoffice/sc/source/ui/view/output.cxx:1933
#11 0x00002aaaca725b18 in ScGridWindow::UpdateFormulas (this=0x2f31c50) at
/home/julien/compile-libreoffice/libreoffice/sc/source/ui/view/gridwin.cxx:4630
#12 0x00002aaaca7ddfb3 in ScTabView::UpdateFormulas (this=0x2f2bd58) at
/home/julien/compile-libreoffice/libreoffice/sc/source/ui/view/tabview3.cxx:1921


It seems 0 is considered like empty which has for consequence to consider the
value like a string:

    672 bool ScMatrixImpl::IsString( SCSIZE nC, SCSIZE nR ) const
    673 {
    674     ValidColRowReplicated( nC, nR );
    675     switch (maMat.get_type(nR, nC))
    676     {
    677         case mdds::mtm::element_empty:
    678         case mdds::mtm::element_string:
    679             return true;
    680         default:
    681             ;
    682     }
    683     return false;
    684 }
See
http://opengrok.libreoffice.org/xref/core/sc/source/core/tool/scmatrix.cxx#672

I don't know if the problem is the fact that mdds indicates it's empty
   1437 template<typename _CellBlockFunc>
   1438 mtv::element_t multi_type_vector<_CellBlockFunc>::get_type(size_type
pos) const
   1439 {
   1440     size_type start_row = 0;
   1441     size_type block_index = 0;
   1442     if (!get_block_position(pos, start_row, block_index))
   1443        
detail::throw_block_position_not_found("multi_type_vector::get_type", __LINE__,
pos, block_size(), size());
   1444 
   1445     const block* blk = m_blocks[block_index];
   1446     if (!blk->mp_data)
   1447         return mtv::element_type_empty;
   1448 
   1449     return mtv::get_block_type(*blk->mp_data);
   1450 }

Eike/Markus: thought you might be interested in this one.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to