Age | Commit message (Collapse) | Author |
|
Signed-off-by: Petr Mladek <pmladek@suse.cz>
|
|
PageMasterImportPropMapper: in the case of a single "fo:border"
and "style:border-line-width" attribute, it is possible that the border
is imported wrongly, like this:
1. pAllBorderProperty is set from the imported value, with name "TopBorder"
2. individual pNewBorder[i] are created as copies from pAllBorderProperty,
one of which also with name "TopBorder"
3. pNewBorder[i] is updated with widths from pBorderWidths[i]
4. the individual pNewBorder[i] are added to the property vector
5. the property vector is sorted by property name
6. the properites are applied in order; if the pNewBorder[TOP]
happens to precede the pAllBorderProperty (which is indeterminate
as they both have name "TopBorder"), then the pAllBorderProperty
will overwrite the border widths computed in step 3.
Thus, nerf the various pAllFoo properties so they do not override
the individual Foo properties later on.
(cherry picked from commit 7f9928bfa561ccb6ed4e2baacc7d6960bc1ce231)
Change-Id: I87755f1184d59da2aa72ac053e6f77d7295d6958
Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
|
|
The vector::back() does not return a value but a reference, hence this
is invalid.
Change-Id: I8624b649deb8fb4de0d1d8af1288068acc80cef2
|
|
The factor here is used to divide, so the parameters have to be
switched; this has always been broken but probably before
3ca2bef76886450058d1667703aeafe4c2e456c3 nothing called this.
This also reverts 7bf1fa3757133f12cf6ca624f8cee6ba5363e7d8 because
that was a workaround for the problem in the wrong place.
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
|
|
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
|
|
I missed the fact that odf export still uses the old exporter in
xmloff/source/draw/xexptran.cxx, which was not fixed wrt. the update
of current position in basegfx/source/polygon/b2dsvgpolypolygon.cxx
Conflicts:
xmloff/source/draw/xexptran.cxx
|
|
The uno::Sequence copy c'tor creates a flat copy and increments the ref
count. So if you use new and later delete together with the copy
constructor you get a double delete.
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
|
|
createTextCursorByRange() likes to throw runtime exception, even though it
just means 'we were unable to create the cursor'.
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
|
|
In ODF 1.1 and 1.2 this attribute is of type boolean, so only write the
new values if the extended format is selected.
(regression introduced with e479f47f7d48dbd0d701bf347b6a2d5121ba3d34)
|
|
XMLTextParagraphExport::addTextFrameAttributes: delay writing of the
fo:min-width and fo:min-height attributes so that they end up at the
draw:text-box element, and not at draw:frame where they are invalid.
Testing reveals that the ODF import can already handle reading the
attributes from the draw:text-box elements, so there doesn't seem to be
a backward compatibility problem.
|
|
Signed-off-by: Petr Mladek <pmladek@suse.cz>
|
|
|
|
|
|
These have type positiveInteger, so don't write 0 values:
20.191 fo:hyphenation-push-char-count
20.192 fo:hyphenation-remain-char-count
(cherry picked from commit 59a5c37d0df9b5612552c4b749191385ca0adc80)
|
|
The following 3 attributes have been added in ODF 1.2, so don't write
them into ODF 1.1 files:
style:layout-grid-base-width 20.297
style:layout-grid-snap-to 20.305
style:layout-grid-standard-mode 20.306
Additionally, style:layout-grid-snap-to was written wrongly as
style:layout-grid-snap-to-characters, which does not exist in any ODF
spec.
For backward compatibility with previous OOo/LO versions, write the
wrong attribute in addition to the correct one in ODF extended mode,
even though validators complain about it (consider removing that
some years from now).
(cherry picked from commit c1e1ef80e8428514499b061e00801a6a6298d0b0)
|
|
|
|
# HG changeset patch
# User Christian Lippka ORACLE <christian.lippka@oracle.com>
# Date 1299691906 -3600
# Node ID 0b9b11216b0d3401f8824542dd5f2794eb141035
# Parent 69091b8fc77c9951fcdc52b800a37a92dc70bf84
impress210: #i41995# fixed distinct shape and page id
|
|
Do the tempfile handling in SdrMediaObj, not in the window;
this has the advantage that it works even in the presence of clipboard
documents without SfxBaseModels and thus without storage (sc, sw).
The SdrMediaObj instances share ownership of a temp file.
|
|
|
|
|
|
|
|
|
|
|
|
* Read dates with years consisting of less than 4 digits.
ISO 8601 specifies that years are to be written with a minimum of 4 digits.
However, be lenient in what we accept.
* Write years < 1000 with leading zeros to comply with ISO 8601 YYYY.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
An unnamed form element without parent container lead to a crash when trying to
obtain a unique name by iterating over (now not) existing container elements.
|
|
The export is working, while the import part is still in progress.
|
|
This allow to run make in a module wihtout the need to source
Env.Host.sh.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fix for fdo#35190 - Impress writes invalid ODF for the table
styles (text:style-name instead of table:style-name).
|
|
|
|
|
|
|
|
|
|
|