• Justin Luth's avatar
    tdf#74177 writer: ignoring comment allows number recognition · 9d6bf9d4
    Justin Luth yazdı
    The presence of an annotation anchor was causing number recognition
    to fail in Writer's table cells. Formulas accessing the cell
    read a value of zero.
    
    Annotation anchors are only used in SW right now, so SVL didn't
    want the overhead in their code. So this wrapper function should
    be called first to cleanup SW specific things that interfere
    with number recognition.  Specifically known to be needed in
    cellfml.cxx, but converted everywhere for consistency.
    
    The formula in older documents is not "fixed" during document loading
    since the table/formulas are not refreshed at load time.
    Only documents saved with incorrect results will notice this,
    and any cursor access inside the table will cause a refresh.
    Printing also causes a refresh (but not print preview or PDF export).
    
    So this patch only fixes document creation or modification, which
    should be adequate for this bug.
    
    Change-Id: Ib46f2b7899ae9a0fdc3aae5887bb2d61535d29f3
    Reviewed-on: https://gerrit.libreoffice.org/32909Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
    9d6bf9d4
doc.hxx 72.7 KB