Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Mon, 2011-05-16 at 09:37 +0200, Chr. Rossmanith wrote:
Hi,

I had a closer look at output2.cxx.

(1) ScOutputData::DrawEditTopBottom tests "if (rParam.hasLineBreak())"
(2) ScOutputData::DrawEditBottomTop tests "if (rParam.mbBreak)"

with

bool ScOutputData::DrawEditParam::hasLineBreak() const
{
     return (mbBreak || (meOrient == SVX_ORIENTATION_STACKED) || 
mbAsianVertical);
}

so (2) is more restrictive than (1). Would it be valid to have 
rParam.hasLineBreak() in (2) as well?

My answer is I don't know.  This part of the code is very fragile at the
moment and I don't want anybody changing anything without extensive
run-time testing of all sort of cell contents.  I've experienced painful
debugging where changing small thing like that resulted in very weird
breakage which took me a day to debug.  So, I'm not keen on changing
anything in this area without understanding the risk involved.

I'm working on cleaning up this area to make debugging less painful
FWIW.

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc
<kyoshida@novell.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.