On 22 November 2010 21:22, Michael Meeks <michael.meeks@novell.com> wrote:
Hi Mattias,
On Sun, 2010-11-21 at 00:21 +1100, Mattias Johnsson wrote:
I've been trying to fix a bug in the search and replace code, and
after a bit of hacking have discovered that in findattr.cxx there's a
function
Nice work :-)
If I'm understanding things correctly, and I may not be, since the
search and replace code is quite convoluted, in this case these
SfxPoolItems are lists of attributes that one can search and replace
for
Right ...
in this case I'm searching for a specific font size and replacing
it with another.
Interesting indeed :-) a new feature for search / replace ? So some of
Not a new feature, but rather fixing this very odd and specific bug:
http://qa.openoffice.org/issues/show_bug.cgi?id=115528
OO doesn't seem to like 14 point font :-P. It's not a particularly
important bug, but it's proving useful for learning the internals of
Writer :-)
these pool items for things like font size are defined in:
editeng/inc/editeng/fhgtitem.hxx
as SvxFontHeightItem (I think).
Thanks for the tips!
On a semi-related note, I'm doing a lot of stepping through the search
and replace code trying to track the problem down. Because LO seems to
be compiled using -O2 and -O3, there's a lot of optimization which
means the way the code gets stepped through is often bizarre, and the
values of useful variables have been optimized out by the compiler. Is
there a simple option for building the LO project using a lower
optimization level? I can't seem to find one...
Cheers,
Mattias
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.