Age | Commit message (Collapse) | Author | Files | Lines |
|
As of now, libcdr gets the coordinates of a text object from the BoundingBox (bbox entry)
corresponding to the object. However, there are certain CDR version 700 files that do not contain
bounding boxes for text objects. In this case the coordinates of the text object can be found from
the transform (trfd entry) for the text object. This commit provides the coordinates from trfd if
the bbox coordinates of the object are 0 (the case with no bbox).
Change-Id: I68a7aefbb8a8e2b24466f9dd3fd5e460e28ad9e7
|
|
Change-Id: I09a451d7841ef049bbefb399a7319df4167952b0
|
|
Change-Id: I44ca70cc7c0ce726b91cccfb11128b163e7e4a4b
|
|
Change-Id: If3f8bddd56c5336092297797c91674b434ffa4e5
|
|
Change-Id: Ie08458b218ad56d7ee10466b3cf0c418c838c1d8
|
|
Change-Id: Ic8e94d97a8e85efd47c5e4f6ed9dcd87dedaa570
|
|
Change-Id: I058962c08a0b1f7feb57771bcd4e0336971bef40
|
|
Change-Id: I276a4b844418c2ffa818560bd8b93258d539dbaa
|
|
Change-Id: I212fa6a5a5243d57e6941d3398b20f830de4b26c
|
|
Change-Id: Iae442c48ea153436a9e588313d109b2f91acc06c
|
|
Change-Id: Icfbd31cb08c994c494758dcd86b72ea68b4f54b0
|
|
Change-Id: I227aef5ff9ef68f1a377181c6779358383971507
|
|
Change-Id: Ib81df0f50fa81d0c9b573d5b276ea66d2212e9b2
|
|
Change-Id: Ia7ada38f62d17abebc3d7d29d023750aac4dd451
|
|
Change-Id: I52e03639bd8357cae4d1ad382089ddbf73512c7e
|
|
Change-Id: I46402402931dad2190ef8aa405dd146a2d0fcf16
|
|
Change-Id: I8dd86e35c71e7657128ebd63a7cafe730c0daf47
|
|
Change-Id: I970bfbe0c00032ad196dd06bf27d32e341afc3f6
|
|
This reverts commit e2b0c8a788ec124a58a63ddc56d77fa317624bf5.
|
|
Change-Id: I9c97f3010ba7d4ec38dde0825e61fca6c7bce62e
|
|
Change-Id: I4fa754ba03be06594e421de1d03be25aec0e5c1e
|
|
The standard parser chokes on some characters due to conversion of
codes >127 into negative numbers
Change-Id: I3e5ac008376997c0b9b657016c293d5702bf75ec
|
|
Change-Id: I8a6a455b2dd57b9aa0d2fa3a0e3298f623f1586d
|
|
This is really similar to LibreOffice core.git
<https://gerrit.libreoffice.org/c/core/+/105151>.
Change-Id: I91c5a9a5f573086d06428b16a459852d993ea31f
|
|
Change-Id: Ic91d9631687208351d24d57677df834bc752523e
|
|
Change-Id: I4ecb2af0918bfe5a3f925ecf6e60cf72a2bbc282
|
|
Change-Id: I07aff123bf56d5202acca17233d525cf572a5ffc
|
|
Change-Id: I614ce56b773b136aa2fb08fb5e527066cc352bd9
|
|
Change-Id: I88ba199fa77913e0bb075004f052bf8226efec52
|
|
Change-Id: Ifd7e8c42c1ff2cd0986a467a27335af6b441b2f8
|
|
Change-Id: I6d08021d222b21c43cd0f29a1ed8d4aad21a45a5
|
|
Change-Id: Ia80c4efe9b6c3282a9ee92d9b75c9c16e1bfdc50
|
|
Change-Id: Ia7762b1946ba50d71a4d53bbcffb963701d3b320
|
|
Change-Id: Ib383d22dc33f494d69cee30f3b6100f1617cc034
|
|
Change-Id: I000c8ad4dfdaa7cc250687d542284585e2a903ea
|
|
Change-Id: I7f03558e5aa5aa73fdb22f58d29eeb64342c198d
|
|
Change-Id: I6892218152d14036b468826fc91f763787554ee3
|
|
Change-Id: I935d553727aef0e9ee21bac254c6fdc24349c93f
|
|
Change-Id: Ibe31785f36920fc43de52833be25a1b82be9832c
|
|
Change-Id: Ib9861375302237d2d96c32fea5604064c395f68d
|
|
Change-Id: I188be62b02807f6704ce78ef2a9b1011667ed46a
|
|
Change-Id: I9d5d2f92da990b9e46998517bdf1b750ddb00315
|
|
make the auto variable of the for loop const &, otherwise there's a copy
involved. Copying a shared_ptr is not very expensive but not copying it
is cheaper :)
Change-Id: I861e8b58441b45e2e7aa045e2aa7c0521c73ebbe
Reviewed-on: https://gerrit.libreoffice.org/80303
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
|
|
New gcc complains when you're using the default defined operator= but
your class has an explicitely defined copy constructor.
This is because if you implemented the copy constructor is usually
because you needed something special, so you'll need that special in the
assignment operator.
In the cases here it's not really a problem since the explicitely
defined constructors where just doing the same as the default so i've
just marked them as default as well as the assignment operator
Example:
CDRParser.cpp: In member function ‘void libcdr::CDRParser::readFont(librevenge::RVNGInputStream*, unsigned int)’:
CDRParser.cpp:2550:53: warning: implicitly-declared ‘libcdr::CDRFont& libcdr::CDRFont::operator=(const libcdr::CDRFont&)’ is deprecated [-Wdeprecated-copy]
2550 | m_fonts[fontId] = CDRFont(fontName, fontEncoding);
| ^
In file included from CDRParser.h:18,
from CDRParser.cpp:10:
CDRTypes.h:372:3: note: because ‘libcdr::CDRFont’ has user-provided ‘libcdr::CDRFont::CDRFont(const libcdr::CDRFont&)’
372 | CDRFont(const CDRFont &font)
| ^~~~~~~
Change-Id: I3011f415cc1e44222509d69a2d5a791a3e3e91e1
Reviewed-on: https://gerrit.libreoffice.org/80302
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
|
|
See <https://gerrit.libreoffice.org/#/c/73181/> "external/libcdr: Avoid UB
converting from double to int via unsigned" for details.
Change-Id: I667dbca60674c183b0b7bee50deb0324becd6b21
Reviewed-on: https://gerrit.libreoffice.org/73182
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
|
|
These loop variables had narrower type than the iteration's upper bound.
Change-Id: I5a2b4b41d52c931ab2de476b41957b30b22b0344
|
|
CMXParser.cpp:42:43: error: expected ')'
CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength));
^
CMXParser.cpp:42:19: note: to match this '('
CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength));
^
1 error generated.
Change-Id: I9575a96327a62dc6c44950d35a8740242e1a4433
|
|
Change-Id: I29bad8c1e96f17bf8304729baff8305584371a33
|
|
Change-Id: I1e013489374d6f36d2b299c78464a3ebaf8eadbe
|
|
Change-Id: I7bd39a4aa5b7dd0a267225787463804c7e274ec6
|