• Mark Hung's avatar
    Fix tdf#93438 Impress generate abnormal style when copy-pasting · e3dc11d4
    Mark Hung yazdı
    from Writer with Chinese UI. When user configure UI language as
    Chinese, style names are also translated. However when Copy-pasting
    from Writer to Impress ( select RTF fromat with paste-special),
    Chinese (unicode) style names are borken into multiparts, where
    some of them are empty string. Neither deleting the abnormal
    style nor saving the file can be achieved. The only remedy is to
    remove style with emtpy name with macro. With this patch:
    1) Catch NoSuchElementException and ignores it, so
       user still has chance saving file.
    2) Make sure style has valid number before inserting it.
    3) Prevent text breaking into multiple tokens by handling  ucN in
     ScanText().
    
    Change-Id: I417f70b81c23ac63c175cc13c548068873d13a38
    Reviewed-on: https://gerrit.libreoffice.org/18148Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/19685
    (cherry picked from commit 52f3eb47)
    e3dc11d4
Adı
Son kayıt (commit)
Son güncelleme
..
parrtf.cxx Loading commit data...
rtfkeywd.cxx Loading commit data...
rtfout.cxx Loading commit data...
svparser.cxx Loading commit data...