2011/9/21 Caolán McNamara <caolanm@redhat.com>:
So I reckon we might be better off modifying
StringRangeEnumerator::getRangesFromString to always clear its page
vector argument, and then its probably worth being more forgiving and
output what valid ranges in the text can be extracted before the
invalid chars are seen.
So "1-5junk" ends up always equivalent to 1-5 (if the return code is
ignored) and "junk" is equivalent to 0.
But what about of my original patch for now?
What do you think about
http://cgit.freedesktop.org/libreoffice/core/commit/?id=5a0e780d8a4194c812f436a2362098202fcfa29e
?, does that make things consistent without any obvious problems ?
C.
Ok! Problems with incorrect pasting eliminated. But one problem still exists...
If in brochure mode we input range, that is incorrect at all (e.g.
"foo") or starts with illegal characters (e.g. "foo1-4"), previous
range will be lost. I still think we should not make any changes to
"rData" parameter of SwDoc::CalculatePagePairsForProspectPrinting
until all checks "if ( ... ) return;" had passed.
Context
[Libreoffice] [REVIEWED 3-4][PUSHED] Fix for fdo#38391 · Michael Meeks
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.