summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2008-06-04 23:50:30 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2008-06-04 23:50:30 +0000
commit4cdac0ac7043a6ebfd10df7f7f8a71e76b7085a0 (patch)
tree94d04557a8bcb932d72714d2cc8510b4a31d0b12 /media-gfx/inkscape/files
parentVersion bump and set VARTEXFONTS, just in case (diff)
downloadhistorical-4cdac0ac7043a6ebfd10df7f7f8a71e76b7085a0.tar.gz
historical-4cdac0ac7043a6ebfd10df7f7f8a71e76b7085a0.tar.bz2
historical-4cdac0ac7043a6ebfd10df7f7f8a71e76b7085a0.zip
Bump to -r3 and patch for bug 224883, poppler-0.8.3 compat
Package-Manager: portage-2.1.5.3
Diffstat (limited to 'media-gfx/inkscape/files')
-rw-r--r--media-gfx/inkscape/files/inkscape-0.46-poppler-0.8.3.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/media-gfx/inkscape/files/inkscape-0.46-poppler-0.8.3.patch b/media-gfx/inkscape/files/inkscape-0.46-poppler-0.8.3.patch
new file mode 100644
index 000000000000..70f9a16abd4c
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.46-poppler-0.8.3.patch
@@ -0,0 +1,42 @@
+diff -NrU5 inkscape-0.46.orig/src/extension/internal/pdfinput/pdf-parser.cpp inkscape-0.46/src/extension/internal/pdfinput/pdf-parser.cpp
+--- inkscape-0.46.orig/src/extension/internal/pdfinput/pdf-parser.cpp 2008-06-05 00:26:20.000000000 +0200
++++ inkscape-0.46/src/extension/internal/pdfinput/pdf-parser.cpp 2008-06-05 00:51:47.000000000 +0200
+@@ -2194,11 +2194,11 @@
+ void PdfParser::doShowText(GooString *s) {
+ GfxFont *font;
+ int wMode;
+ double riseX, riseY;
+ CharCode code;
+- Unicode u[8];
++ Unicode *u = NULL;
+ double x, y, dx, dy, dx2, dy2, curX, curY, tdx, tdy, lineX, lineY;
+ double originX, originY, tOriginX, tOriginY;
+ double oldCTM[6], newCTM[6];
+ double *mat;
+ Object charProc;
+@@ -2242,11 +2242,11 @@
+ oldParser = parser;
+ p = s->getCString();
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+- u, (int)(sizeof(u) / sizeof(Unicode)), &uLen,
++ &u, &uLen,
+ &dx, &dy, &originX, &originY);
+ dx = dx * state->getFontSize() + state->getCharSpace();
+ if (n == 1 && *p == ' ') {
+ dx += state->getWordSpace();
+ }
+@@ -2291,11 +2291,11 @@
+ state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
+ p = s->getCString();
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+- u, (int)(sizeof(u) / sizeof(Unicode)), &uLen,
++ &u, &uLen,
+ &dx, &dy, &originX, &originY);
+
+ if (wMode) {
+ dx *= state->getFontSize();
+ dy = dy * state->getFontSize() + state->getCharSpace();