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


On Wed, 2011-06-15 at 10:51 +0100, Caolán McNamara wrote:
So, looking at

https://bugs.freedesktop.org/show_bug.cgi?id=33636

I see a bit of a nest of horrors around calc selections.

Welcome to (the horror of) Calc! :-)  You'll find plenty of it around
here though I'm not sure how it compares to Writer.

It's not massively clear to me how the calc selections are expected to
work, but my thinking is that GetMarkData is an apparently reliable sane
layer, and taking a FillRangeListWithMarks from that to use as the
comparison that the selection has changed avoids the problem, and
apparently works for me.

Yes. ScMarkData instance owned by ScViewData stores the authoritative
data on current range selection.  So, you can certainly rely on that to
test for selection change, I would think.

Thoughts ?, if no-one has a better view I'll take a punt and commit it
in a few days to master.

I think your patch looks reasonable.  I'm certainly not an expert of
this particular spell-checking code, but I don't see anything alarming.

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.