From: Arkadiusz Miƛkiewicz Date: Sun, 27 May 2012 15:11:57 +0000 (+0000) Subject: - rel 9; fix glib/poppler build X-Git-Tag: auto/th/inkscape-0_48_2-9 X-Git-Url: http://git.pld-linux.org/?p=packages%2Finkscape.git;a=commitdiff_plain;h=c4df3d1279f9b90e3717c673152ebeb9cbb0e036 - rel 9; fix glib/poppler build Changed files: inkscape-0.48.2-glib.patch -> 1.1 inkscape-poppler.patch -> 1.4 inkscape.spec -> 1.109 --- diff --git a/inkscape-0.48.2-glib.patch b/inkscape-0.48.2-glib.patch new file mode 100644 index 0000000..88e9f61 --- /dev/null +++ b/inkscape-0.48.2-glib.patch @@ -0,0 +1,2445 @@ +Adjust for new glib.h include rules. + +diff --git a/src/application/application.h b/src/application/application.h +index fce6bd4..749790a 100644 +--- a/src/application/application.h ++++ b/src/application/application.h +@@ -13,7 +13,7 @@ + #ifndef INKSCAPE_APPLICATION_APPLICATION_H + #define INKSCAPE_APPLICATION_APPLICATION_H + +-#include ++#include + + namespace Gtk { + class Main; +diff --git a/src/application/editor.h b/src/application/editor.h +index 4545022..6a11ec9 100644 +--- a/src/application/editor.h ++++ b/src/application/editor.h +@@ -16,7 +16,7 @@ + #define INKSCAPE_APPLICATION_EDITOR_H + + #include +-#include ++#include + #include + #include + #include "app-prototype.h" +diff --git a/src/attributes-test.h b/src/attributes-test.h +index 6677294..2621f93 100644 +--- a/src/attributes-test.h ++++ b/src/attributes-test.h +@@ -6,7 +6,6 @@ + + #include + #include +-#include + #include "attributes.h" + #include "streq.h" + +diff --git a/src/attributes.cpp b/src/attributes.cpp +index 5d3a008..97b23c6 100644 +--- a/src/attributes.cpp ++++ b/src/attributes.cpp +@@ -17,8 +17,7 @@ + # include "config.h" + #endif + +-#include // g_assert() +-#include ++#include + #include "attributes.h" + + typedef struct { +diff --git a/src/attributes.h b/src/attributes.h +index 82ac962..4cd3459 100644 +--- a/src/attributes.h ++++ b/src/attributes.h +@@ -13,8 +13,7 @@ + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ +-#include +-#include ++#include + + unsigned int sp_attribute_lookup(gchar const *key); + unsigned char const *sp_attribute_name(unsigned int id); +diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp +index 6dc8c9a..36d55f6 100644 +--- a/src/bind/javabind.cpp ++++ b/src/bind/javabind.cpp +@@ -52,7 +52,7 @@ + #include "javabind-private.h" + #include + #include +-#include ++#include + + //For repr and document + #include +diff --git a/src/color-profile-fns.h b/src/color-profile-fns.h +index c8c51b5..41d8fc6 100644 +--- a/src/color-profile-fns.h ++++ b/src/color-profile-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + #if ENABLE_LCMS + #include + #include +diff --git a/src/color-profile.h b/src/color-profile.h +index fa8f353..029b232 100644 +--- a/src/color-profile.h ++++ b/src/color-profile.h +@@ -5,7 +5,7 @@ + * SPColorProfile: SVG implementation + */ + +-#include ++#include + #include + #include + #if ENABLE_LCMS +diff --git a/src/color-rgba.h b/src/color-rgba.h +index fc52b19..39b2975 100644 +--- a/src/color-rgba.h ++++ b/src/color-rgba.h +@@ -12,8 +12,7 @@ + #ifndef SEEN_COLOR_RGBA_H + #define SEEN_COLOR_RGBA_H + +-#include // g_assert() +-#include ++#include + #include "libnr/nr-pixops.h" + #include "decimal-round.h" + +diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h +index 653b1d7..f276634 100644 +--- a/src/conn-avoid-ref.h ++++ b/src/conn-avoid-ref.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include + #include + +diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp +index f28d275..27c6d19 100644 +--- a/src/debug/logger.cpp ++++ b/src/debug/logger.cpp +@@ -11,7 +11,7 @@ + + #include + #include +-#include ++#include + #include "inkscape-version.h" + #include "debug/logger.h" + #include "debug/simple-event.h" +diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h +index 74301a6..ea28cf5 100644 +--- a/src/debug/simple-event.h ++++ b/src/debug/simple-event.h +@@ -14,9 +14,7 @@ + + #include + #include +-#include // g_assert() +-#include +-#include ++#include + + #include "gc-alloc.h" + #include "debug/event.h" +diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp +index 8814f37..26a9ce0 100644 +--- a/src/debug/timestamp.cpp ++++ b/src/debug/timestamp.cpp +@@ -10,8 +10,7 @@ + */ + + +-#include +-#include ++#include + #include + #include "debug/simple-event.h" + +diff --git a/src/desktop-style.h b/src/desktop-style.h +index e1ca5b3..95b3bf9 100644 +--- a/src/desktop-style.h ++++ b/src/desktop-style.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + class ColorRGBA; + struct SPCSSAttr; +diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp +index 55884fe..b846f48 100644 +--- a/src/dialogs/clonetiler.cpp ++++ b/src/dialogs/clonetiler.cpp +@@ -12,7 +12,7 @@ + #ifdef HAVE_CONFIG_H + # include "config.h" + #endif +-#include ++#include + #include + #include + +diff --git a/src/dir-util.cpp b/src/dir-util.cpp +index 67db036..8fe1315 100644 +--- a/src/dir-util.cpp ++++ b/src/dir-util.cpp +@@ -7,11 +7,7 @@ + #include + #include + #include +-#include +-#include +-#include +-#include +-#include ++#include + + /** Returns a form of \a path relative to \a base if that is easy to construct (e.g. if \a path + appears to be in the directory specified by \a base), otherwise returns \a path. +diff --git a/src/dir-util.h b/src/dir-util.h +index 9bdfafa..6b16fcc 100644 +--- a/src/dir-util.h ++++ b/src/dir-util.h +@@ -10,7 +10,7 @@ + */ + + #include +-#include ++#include + + char const *sp_relative_path_from_path(char const *path, char const *base); + char const *sp_extension_from_path(char const *path); +diff --git a/src/display/canvas-bpath.h b/src/display/canvas-bpath.h +index b97bbcc..6db6fa3 100644 +--- a/src/display/canvas-bpath.h ++++ b/src/display/canvas-bpath.h +@@ -13,7 +13,7 @@ + * + */ + +-#include ++#include + + #include + +diff --git a/src/display/curve.cpp b/src/display/curve.cpp +index 73b8dc3..b17ef51 100644 +--- a/src/display/curve.cpp ++++ b/src/display/curve.cpp +@@ -19,7 +19,7 @@ + + #include "display/curve.h" + +-#include ++#include + #include <2geom/pathvector.h> + #include <2geom/sbasis-geometric.h> + #include <2geom/sbasis-to-bezier.h> +diff --git a/src/display/curve.h b/src/display/curve.h +index fe07201..64731c4 100644 +--- a/src/display/curve.h ++++ b/src/display/curve.h +@@ -15,8 +15,7 @@ + * Released under GNU GPL + */ + +-#include +-#include ++#include + + #include <2geom/forward.h> + +diff --git a/src/display/gnome-canvas-acetate.h b/src/display/gnome-canvas-acetate.h +index 40574e1..2f84931 100644 +--- a/src/display/gnome-canvas-acetate.h ++++ b/src/display/gnome-canvas-acetate.h +@@ -15,7 +15,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include "display/sp-canvas.h" + + +diff --git a/src/display/nr-3dutils.cpp b/src/display/nr-3dutils.cpp +index 89c2194..db8800f 100644 +--- a/src/display/nr-3dutils.cpp ++++ b/src/display/nr-3dutils.cpp +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "libnr/nr-pixblock.h" + #include "display/nr-3dutils.h" +diff --git a/src/display/nr-arena.h b/src/display/nr-arena.h +index 76b071e..1d23511 100644 +--- a/src/display/nr-arena.h ++++ b/src/display/nr-arena.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "display/rendermode.h" + +diff --git a/src/display/nr-filter-diffuselighting.cpp b/src/display/nr-filter-diffuselighting.cpp +index 0fe4c59..1e08e11 100644 +--- a/src/display/nr-filter-diffuselighting.cpp ++++ b/src/display/nr-filter-diffuselighting.cpp +@@ -10,7 +10,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "display/nr-3dutils.h" + #include "display/nr-arena-item.h" +diff --git a/src/display/nr-filter-specularlighting.cpp b/src/display/nr-filter-specularlighting.cpp +index 6a6ce38..dbe6764 100644 +--- a/src/display/nr-filter-specularlighting.cpp ++++ b/src/display/nr-filter-specularlighting.cpp +@@ -10,7 +10,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include + + #include "display/nr-3dutils.h" +diff --git a/src/display/nr-plain-stuff.cpp b/src/display/nr-plain-stuff.cpp +index 62a6110..e37ad96 100644 +--- a/src/display/nr-plain-stuff.cpp ++++ b/src/display/nr-plain-stuff.cpp +@@ -11,7 +11,7 @@ + * Released under GNU GPL + */ + +-#include ++#include + #include + #include "nr-plain-stuff.h" + +diff --git a/src/display/nr-plain-stuff.h b/src/display/nr-plain-stuff.h +index c568f38..99176a3 100644 +--- a/src/display/nr-plain-stuff.h ++++ b/src/display/nr-plain-stuff.h +@@ -12,7 +12,7 @@ + * Released under GNU GPL + */ + +-#include ++#include + + void nr_render_checkerboard_rgb (guchar *px, gint w, gint h, gint rs, gint xoff, gint yoff); + void nr_render_checkerboard_rgb_custom (guchar *px, gint w, gint h, gint rs, gint xoff, gint yoff, guint32 c0, guint32 c1, gint sizep2); +diff --git a/src/display/sodipodi-ctrlrect.h b/src/display/sodipodi-ctrlrect.h +index 7e5f515..7e00565 100644 +--- a/src/display/sodipodi-ctrlrect.h ++++ b/src/display/sodipodi-ctrlrect.h +@@ -16,7 +16,7 @@ + * + */ + +-#include ++#include + #include "sp-canvas.h" + + #define SP_TYPE_CTRLRECT (sp_ctrlrect_get_type ()) +diff --git a/src/display/sp-canvas.h b/src/display/sp-canvas.h +index 3d23bf0..14c1410 100644 +--- a/src/display/sp-canvas.h ++++ b/src/display/sp-canvas.h +@@ -27,7 +27,7 @@ + # endif + #endif + +-#include ++#include + #include + #include + +diff --git a/src/document-subset.cpp b/src/document-subset.cpp +index 1988865..020e6af 100644 +--- a/src/document-subset.cpp ++++ b/src/document-subset.cpp +@@ -12,7 +12,7 @@ + #include "document.h" + #include "sp-object.h" + +-#include ++#include + + #include + #include +diff --git a/src/draw-anchor.h b/src/draw-anchor.h +index 0277616..af281d3 100644 +--- a/src/draw-anchor.h ++++ b/src/draw-anchor.h +@@ -5,7 +5,7 @@ + * Drawing anchors. + */ + +-#include ++#include + #include <2geom/point.h> + + struct SPDrawContext; +diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp +index bb8e690..7a61a88 100644 +--- a/src/dyna-draw-context.cpp ++++ b/src/dyna-draw-context.cpp +@@ -38,7 +38,7 @@ + #include <2geom/pathvector.h> + #include <2geom/bezier-utils.h> + #include "display/curve.h" +-#include ++#include + #include "macros.h" + #include "document.h" + #include "selection.h" +diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp +index c198d93..c0bdec6 100644 +--- a/src/eraser-context.cpp ++++ b/src/eraser-context.cpp +@@ -36,7 +36,7 @@ + #include "display/canvas-bpath.h" + #include <2geom/bezier-utils.h> + +-#include ++#include + #include "macros.h" + #include "document.h" + #include "selection.h" +diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp +index e907612..9a5a506 100644 +--- a/src/extension/internal/bitmap/imagemagick.cpp ++++ b/src/extension/internal/bitmap/imagemagick.cpp +@@ -15,6 +15,7 @@ + #include + #include + ++#include + #include + + #include "desktop.h" +diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp +index 596f1fe..d65722b 100644 +--- a/src/extension/internal/cairo-render-context.cpp ++++ b/src/extension/internal/cairo-render-context.cpp +@@ -29,7 +29,7 @@ + #include + #include <2geom/pathvector.h> + +-#include ++#include + + #include + #include "display/nr-arena.h" +diff --git a/src/extension/internal/cairo-renderer.cpp b/src/extension/internal/cairo-renderer.cpp +index 7060251..489af18 100644 +--- a/src/extension/internal/cairo-renderer.cpp ++++ b/src/extension/internal/cairo-renderer.cpp +@@ -33,7 +33,7 @@ + #include <2geom/transforms.h> + #include <2geom/pathvector.h> + +-#include ++#include + + #include + #include "display/nr-arena.h" +diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp +index df7f348..a999c43 100644 +--- a/src/extension/internal/gdkpixbuf-input.cpp ++++ b/src/extension/internal/gdkpixbuf-input.cpp +@@ -1,7 +1,7 @@ + #ifdef HAVE_CONFIG_H + # include + #endif +-#include ++#include + #include + #include "document-private.h" + #include +diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h +index f0062bb..7f19151 100644 +--- a/src/extension/internal/pdfinput/svg-builder.h ++++ b/src/extension/internal/pdfinput/svg-builder.h +@@ -49,7 +49,7 @@ class XRef; + class SPCSSAttr; + + #include +-#include ++#include + + namespace Inkscape { + namespace Extension { +diff --git a/src/extension/internal/win32.cpp b/src/extension/internal/win32.cpp +index 21f2788..18855b2 100644 +--- a/src/extension/internal/win32.cpp ++++ b/src/extension/internal/win32.cpp +@@ -13,7 +13,7 @@ + # include "config.h" + #endif + +-#include ++#include + #include + #include <2geom/transforms.h> + +diff --git a/src/extract-uri.h b/src/extract-uri.h +index 1975d9b..884b43a 100644 +--- a/src/extract-uri.h ++++ b/src/extract-uri.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_EXTRACT_URI_H + #define SEEN_EXTRACT_URI_H + +-#include ++#include + + gchar *extract_uri(gchar const *s, gchar const** endptr = 0); + +diff --git a/src/file.cpp b/src/file.cpp +index 1128a5a..3714560 100644 +--- a/src/file.cpp ++++ b/src/file.cpp +@@ -27,7 +27,7 @@ + #endif + + #include +-#include ++#include + #include + #include + +diff --git a/src/file.h b/src/file.h +index dec7e3f..88d0fa0 100644 +--- a/src/file.h ++++ b/src/file.h +@@ -16,7 +16,7 @@ + */ + + #include +-#include ++#include + #include + + #include "extension/extension-forward.h" +diff --git a/src/filters/blend-fns.h b/src/filters/blend-fns.h +index f08ed9d..39bf2b4 100644 +--- a/src/filters/blend-fns.h ++++ b/src/filters/blend-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/colormatrix-fns.h b/src/filters/colormatrix-fns.h +index 3a4a8d3..e023d4d 100644 +--- a/src/filters/colormatrix-fns.h ++++ b/src/filters/colormatrix-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/componenttransfer-fns.h b/src/filters/componenttransfer-fns.h +index 4998377..06248d6 100644 +--- a/src/filters/componenttransfer-fns.h ++++ b/src/filters/componenttransfer-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/composite-fns.h b/src/filters/composite-fns.h +index c79cb17..51610fd 100644 +--- a/src/filters/composite-fns.h ++++ b/src/filters/composite-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/convolvematrix-fns.h b/src/filters/convolvematrix-fns.h +index 76baf7f..931ad94 100644 +--- a/src/filters/convolvematrix-fns.h ++++ b/src/filters/convolvematrix-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/diffuselighting-fns.h b/src/filters/diffuselighting-fns.h +index b91ed80..18a9375 100644 +--- a/src/filters/diffuselighting-fns.h ++++ b/src/filters/diffuselighting-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/displacementmap-fns.h b/src/filters/displacementmap-fns.h +index 6d92c6b..4b8ed74 100644 +--- a/src/filters/displacementmap-fns.h ++++ b/src/filters/displacementmap-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/flood-fns.h b/src/filters/flood-fns.h +index 8cc5072..0cd4bd3 100644 +--- a/src/filters/flood-fns.h ++++ b/src/filters/flood-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/image-fns.h b/src/filters/image-fns.h +index 0a8b453..5748486 100644 +--- a/src/filters/image-fns.h ++++ b/src/filters/image-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/merge-fns.h b/src/filters/merge-fns.h +index 24bda1a..9787d59 100644 +--- a/src/filters/merge-fns.h ++++ b/src/filters/merge-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/morphology-fns.h b/src/filters/morphology-fns.h +index a055040..a6f1b58 100644 +--- a/src/filters/morphology-fns.h ++++ b/src/filters/morphology-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/offset-fns.h b/src/filters/offset-fns.h +index 38561c1..32fbda7 100644 +--- a/src/filters/offset-fns.h ++++ b/src/filters/offset-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/specularlighting-fns.h b/src/filters/specularlighting-fns.h +index bd48ba6..70cd5d4 100644 +--- a/src/filters/specularlighting-fns.h ++++ b/src/filters/specularlighting-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/tile-fns.h b/src/filters/tile-fns.h +index b7c4c5f..4a99a51 100644 +--- a/src/filters/tile-fns.h ++++ b/src/filters/tile-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/filters/turbulence-fns.h b/src/filters/turbulence-fns.h +index 43b4450..de9f228 100644 +--- a/src/filters/turbulence-fns.h ++++ b/src/filters/turbulence-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/gc-anchored.h b/src/gc-anchored.h +index 917930a..119b86a 100644 +--- a/src/gc-anchored.h ++++ b/src/gc-anchored.h +@@ -11,7 +11,7 @@ + #ifndef SEEN_INKSCAPE_GC_ANCHORED_H + #define SEEN_INKSCAPE_GC_ANCHORED_H + +-#include ++#include + #include "gc-managed.h" + + namespace Inkscape { +diff --git a/src/gc-core.h b/src/gc-core.h +index af327dc..b99e1c5 100644 +--- a/src/gc-core.h ++++ b/src/gc-core.h +@@ -24,7 +24,7 @@ + #else + # include + #endif +-#include ++#include + + namespace Inkscape { + namespace GC { +diff --git a/src/gc.cpp b/src/gc.cpp +index 8622059..5a636e7 100644 +--- a/src/gc.cpp ++++ b/src/gc.cpp +@@ -13,7 +13,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/src/gradient-drag.h b/src/gradient-drag.h +index 40ab065..4fa471b 100644 +--- a/src/gradient-drag.h ++++ b/src/gradient-drag.h +@@ -14,7 +14,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include + #include + #include +diff --git a/src/help.h b/src/help.h +index ef5d703..7241c82 100644 +--- a/src/help.h ++++ b/src/help.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include + + void sp_help_about(void); +diff --git a/src/helper/gnome-utils.h b/src/helper/gnome-utils.h +index 0a28c95..62676c7 100644 +--- a/src/helper/gnome-utils.h ++++ b/src/helper/gnome-utils.h +@@ -15,8 +15,7 @@ + #ifndef __GNOME_UTILS_H__ + #define __GNOME_UTILS_H__ + +-#include +-#include ++#include + + GList *gnome_uri_list_extract_uris(gchar const *uri_list); + +diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp +index 3be63aa..d7d2e57 100644 +--- a/src/helper/pixbuf-ops.cpp ++++ b/src/helper/pixbuf-ops.cpp +@@ -18,7 +18,6 @@ + #include + #include + #include +-#include + #include + #include "png-write.h" + #include +diff --git a/src/helper/pixbuf-ops.h b/src/helper/pixbuf-ops.h +index a985be2..af57327 100644 +--- a/src/helper/pixbuf-ops.h ++++ b/src/helper/pixbuf-ops.h +@@ -12,7 +12,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + struct SPDocument; + +diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp +index b1c135d..5cb37d9 100644 +--- a/src/helper/png-write.cpp ++++ b/src/helper/png-write.cpp +@@ -20,7 +20,7 @@ + #include + #include + #include <2geom/rect.h> +-#include ++#include + #include + #include "png-write.h" + #include "io/sys.h" +diff --git a/src/helper/png-write.h b/src/helper/png-write.h +index 83321aa..f8ba4bb 100644 +--- a/src/helper/png-write.h ++++ b/src/helper/png-write.h +@@ -12,7 +12,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include <2geom/forward.h> + struct SPDocument; + +diff --git a/src/helper/stlport.h b/src/helper/stlport.h +index c9389e8..c7b00eb 100644 +--- a/src/helper/stlport.h ++++ b/src/helper/stlport.h +@@ -3,8 +3,7 @@ + + + #include +-#include +-#include ++#include + + template + class StlConv { +diff --git a/src/helper/stock-items.h b/src/helper/stock-items.h +index ddad554..4576d51 100644 +--- a/src/helper/stock-items.h ++++ b/src/helper/stock-items.h +@@ -12,7 +12,7 @@ + * + */ + +-#include ++#include + + #include + +diff --git a/src/helper/unit-menu.h b/src/helper/unit-menu.h +index cdaa826..fc8a600 100644 +--- a/src/helper/unit-menu.h ++++ b/src/helper/unit-menu.h +@@ -10,7 +10,7 @@ + * + */ + +-#include ++#include + #include + + #include +diff --git a/src/helper/units.h b/src/helper/units.h +index 8dc62fe..93bd706 100644 +--- a/src/helper/units.h ++++ b/src/helper/units.h +@@ -15,9 +15,7 @@ + * + */ + +-#include +-#include +-#include ++#include + #include "sp-metric.h" + + +diff --git a/src/inkscape.h b/src/inkscape.h +index ca28942..5538d4f 100644 +--- a/src/inkscape.h ++++ b/src/inkscape.h +@@ -13,7 +13,7 @@ + */ + + #include +-#include ++#include + + struct SPDesktop; + struct SPDocument; +diff --git a/src/inkview.cpp b/src/inkview.cpp +index 6fe989e..9d76378 100644 +--- a/src/inkview.cpp ++++ b/src/inkview.cpp +@@ -39,7 +39,7 @@ + #include + #include + +-#include ++#include + #include + + // #include +diff --git a/src/io/inkjar.h b/src/io/inkjar.h +index 0fe088b..ea4b0ee 100644 +--- a/src/io/inkjar.h ++++ b/src/io/inkjar.h +@@ -26,8 +26,7 @@ + # endif + #endif + +-#include +-#include ++#include + + namespace Inkjar { + +diff --git a/src/io/resource.cpp b/src/io/resource.cpp +index 1f6f845..14b8beb 100644 +--- a/src/io/resource.cpp ++++ b/src/io/resource.cpp +@@ -16,10 +16,7 @@ + #include "config.h" + #endif + +-#include // g_assert() +-#include +-#include +-#include ++#include + #include "path-prefix.h" + #include "inkscape.h" + #include "io/resource.h" +diff --git a/src/io/sys.cpp b/src/io/sys.cpp +index 143108a..529f7ce 100644 +--- a/src/io/sys.cpp ++++ b/src/io/sys.cpp +@@ -16,8 +16,6 @@ + #endif + + #include +-#include +-#include + #include + #if GLIB_CHECK_VERSION(2,6,0) + #include +diff --git a/src/io/sys.h b/src/io/sys.h +index 8623f6b..83ffdb4 100644 +--- a/src/io/sys.h ++++ b/src/io/sys.h +@@ -15,9 +15,7 @@ + #include + #include + #include +-#include +-#include +-#include ++#include + #include + #include + +diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h +index c8fd29d..84afaa4 100644 +--- a/src/knot-holder-entity.h ++++ b/src/knot-holder-entity.h +@@ -17,7 +17,7 @@ + * Released under GNU GPL + */ + +-#include ++#include + #include "knot.h" + #include <2geom/forward.h> + #include "snapper.h" +diff --git a/src/knotholder.h b/src/knotholder.h +index 0b37d21..7feb1c7 100644 +--- a/src/knotholder.h ++++ b/src/knotholder.h +@@ -17,7 +17,7 @@ + * + */ + +-#include ++#include + #include "knot-enums.h" + #include "forward.h" + #include "libnr/nr-forward.h" +diff --git a/src/libcroco/cr-libxml-node-iface.h b/src/libcroco/cr-libxml-node-iface.h +index 5da0d9a..b4a6212 100644 +--- a/src/libcroco/cr-libxml-node-iface.h ++++ b/src/libcroco/cr-libxml-node-iface.h +@@ -1,7 +1,7 @@ + #ifndef __CR_LIBXML_NODE_IFACE_H__ + #define __CR_LIBXML_NODE_IFACE_H__ + +-#include ++#include + #include "cr-node-iface.h" + + G_BEGIN_DECLS +diff --git a/src/libcroco/cr-node-iface.h b/src/libcroco/cr-node-iface.h +index 9c2d30e..01898d6 100644 +--- a/src/libcroco/cr-node-iface.h ++++ b/src/libcroco/cr-node-iface.h +@@ -1,8 +1,7 @@ + #ifndef __CR_NODE_IFACE_H__ + #define __CR_NODE_IFACE_H__ + +-#include +-#include ++#include + + G_BEGIN_DECLS + +diff --git a/src/libgdl/gdl-stock.h b/src/libgdl/gdl-stock.h +index cb6f7ab..459d00c 100644 +--- a/src/libgdl/gdl-stock.h ++++ b/src/libgdl/gdl-stock.h +@@ -22,7 +22,7 @@ + #ifndef __GDL_STOCK_H__ + #define __GDL_STOCK_H__ + +-#include // G_BEGIN_DECLS ++#include // G_BEGIN_DECLS + + G_BEGIN_DECLS + +diff --git a/src/libnr/in-svg-plane-test.h b/src/libnr/in-svg-plane-test.h +index 304182f..1d51125 100644 +--- a/src/libnr/in-svg-plane-test.h ++++ b/src/libnr/in-svg-plane-test.h +@@ -1,6 +1,6 @@ + #include + +-#include ++#include + #include + + #include "libnr/in-svg-plane.h" +diff --git a/src/libnr/nr-gradient.cpp b/src/libnr/nr-gradient.cpp +index e6eb9b7..32dac7d 100644 +--- a/src/libnr/nr-gradient.cpp ++++ b/src/libnr/nr-gradient.cpp +@@ -26,7 +26,7 @@ + #include + #include + #include +-#include ++#include + #include + + /* Common */ +diff --git a/src/libnr/nr-i-coord.h b/src/libnr/nr-i-coord.h +index f87dea3..c9e6b3f 100644 +--- a/src/libnr/nr-i-coord.h ++++ b/src/libnr/nr-i-coord.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_NR_I_COORD_H + #define SEEN_NR_I_COORD_H + +-#include ++#include + + namespace NR { + +diff --git a/src/libnr/nr-matrix.h b/src/libnr/nr-matrix.h +index b1f9d58..471381c 100644 +--- a/src/libnr/nr-matrix.h ++++ b/src/libnr/nr-matrix.h +@@ -17,8 +17,7 @@ + * This code is in public domain. + */ + +-#include // g_assert() +-#include ++#include + + #include "libnr/nr-coord.h" + #include "libnr/nr-values.h" +diff --git a/src/libnr/nr-object.cpp b/src/libnr/nr-object.cpp +index d92052d..e4268f1 100644 +--- a/src/libnr/nr-object.cpp ++++ b/src/libnr/nr-object.cpp +@@ -15,7 +15,7 @@ + + #include + +-#include ++#include + #include + + #include "nr-object.h" +diff --git a/src/libnr/nr-object.h b/src/libnr/nr-object.h +index 2691302..da89385 100644 +--- a/src/libnr/nr-object.h ++++ b/src/libnr/nr-object.h +@@ -15,7 +15,7 @@ + #include "config.h" + #endif + +-#include ++#include + #include "gc-managed.h" + #include "gc-finalized.h" + #include "gc-anchored.h" +diff --git a/src/libnr/nr-pixblock-pattern.cpp b/src/libnr/nr-pixblock-pattern.cpp +index aa32462..a09c957 100644 +--- a/src/libnr/nr-pixblock-pattern.cpp ++++ b/src/libnr/nr-pixblock-pattern.cpp +@@ -10,7 +10,7 @@ + */ + + +-#include ++#include + #include "nr-pixops.h" + #include "nr-pixblock-pattern.h" + +diff --git a/src/libnr/nr-pixblock.cpp b/src/libnr/nr-pixblock.cpp +index 6b2b12b..a881a37 100644 +--- a/src/libnr/nr-pixblock.cpp ++++ b/src/libnr/nr-pixblock.cpp +@@ -13,7 +13,7 @@ + #include + #include + #include +-#include ++#include + #include "nr-pixblock.h" + + /// Size of buffer that needs no allocation (default 4). +diff --git a/src/libnr/nr-point-fns-test.h b/src/libnr/nr-point-fns-test.h +index 7d28c9c..eeb28f4 100644 +--- a/src/libnr/nr-point-fns-test.h ++++ b/src/libnr/nr-point-fns-test.h +@@ -3,7 +3,7 @@ + + #include + #include +-#include ++#include + #include + + #include "libnr/nr-point-fns.h" +diff --git a/src/libnr/nr-rotate-fns-test.h b/src/libnr/nr-rotate-fns-test.h +index e3bfe30..d1c01cd 100644 +--- a/src/libnr/nr-rotate-fns-test.h ++++ b/src/libnr/nr-rotate-fns-test.h +@@ -1,7 +1,7 @@ + #include + + #include +-#include ++#include + + #include + +diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp +index 067254b..4130bfc 100644 +--- a/src/libnrtype/FontFactory.cpp ++++ b/src/libnrtype/FontFactory.cpp +@@ -15,7 +15,7 @@ + #endif + + #include +-#include ++#include + #include // _() + #include + #include "libnrtype/FontFactory.h" +diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp +index f34b93d..ab03b16 100644 +--- a/src/libnrtype/Layout-TNG-Output.cpp ++++ b/src/libnrtype/Layout-TNG-Output.cpp +@@ -8,7 +8,7 @@ + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ +-#include ++#include + #include "Layout-TNG.h" + #include "display/nr-arena-glyphs.h" + #include "style.h" +diff --git a/src/libnrtype/nr-type-primitives.cpp b/src/libnrtype/nr-type-primitives.cpp +index 34b1e43..698f3f8 100644 +--- a/src/libnrtype/nr-type-primitives.cpp ++++ b/src/libnrtype/nr-type-primitives.cpp +@@ -14,7 +14,7 @@ + + #include + #include +-#include ++#include + #include + #include "nr-type-primitives.h" + +diff --git a/src/libnrtype/nr-type-primitives.h b/src/libnrtype/nr-type-primitives.h +index 92b94e9..9bb181c 100644 +--- a/src/libnrtype/nr-type-primitives.h ++++ b/src/libnrtype/nr-type-primitives.h +@@ -11,7 +11,7 @@ + * This code is in public domain + */ + +-#include ++#include + + struct NRNameList; + struct NRStyleList; +diff --git a/src/livarot/AlphaLigne.cpp b/src/livarot/AlphaLigne.cpp +index f878c1b..5b8321b 100644 +--- a/src/livarot/AlphaLigne.cpp ++++ b/src/livarot/AlphaLigne.cpp +@@ -12,7 +12,7 @@ + #include + #include + #include +-#include ++#include + + AlphaLigne::AlphaLigne(int iMin,int iMax) + { +diff --git a/src/livarot/BitLigne.cpp b/src/livarot/BitLigne.cpp +index c4c1346..d7cce26 100644 +--- a/src/livarot/BitLigne.cpp ++++ b/src/livarot/BitLigne.cpp +@@ -15,7 +15,7 @@ + #include + #include + #include +-#include ++#include + + BitLigne::BitLigne(int ist,int ien,float iScale) + { +diff --git a/src/livarot/PathSimplify.cpp b/src/livarot/PathSimplify.cpp +index 0f440de..efcdfd4 100644 +--- a/src/livarot/PathSimplify.cpp ++++ b/src/livarot/PathSimplify.cpp +@@ -6,7 +6,7 @@ + * + */ + +-#include ++#include + #include + #include "livarot/Path.h" + #include "livarot/path-description.h" +diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp +index 9107844..e260e97 100644 +--- a/src/livarot/Shape.cpp ++++ b/src/livarot/Shape.cpp +@@ -8,7 +8,7 @@ + + #include + #include +-#include ++#include + #include "Shape.h" + #include "livarot/sweep-event-queue.h" + #include "livarot/sweep-tree-list.h" +diff --git a/src/livarot/ShapeSweep.cpp b/src/livarot/ShapeSweep.cpp +index 00a0dd9..d3d5ef1 100644 +--- a/src/livarot/ShapeSweep.cpp ++++ b/src/livarot/ShapeSweep.cpp +@@ -9,7 +9,7 @@ + #include + #include + #include +-#include ++#include + #include "Shape.h" + #include "livarot/sweep-event-queue.h" + #include "livarot/sweep-tree-list.h" +diff --git a/src/livarot/int-line.cpp b/src/livarot/int-line.cpp +index c1e388f..d03d62c 100644 +--- a/src/livarot/int-line.cpp ++++ b/src/livarot/int-line.cpp +@@ -9,7 +9,7 @@ + * + */ + +-#include ++#include + #include + #include + #include +diff --git a/src/livarot/sweep-event.cpp b/src/livarot/sweep-event.cpp +index 88d895e..28fead2 100644 +--- a/src/livarot/sweep-event.cpp ++++ b/src/livarot/sweep-event.cpp +@@ -1,4 +1,4 @@ +-#include ++#include + #include "livarot/sweep-event-queue.h" + #include "livarot/sweep-tree.h" + #include "livarot/sweep-event.h" +diff --git a/src/livarot/sweep-tree-list.cpp b/src/livarot/sweep-tree-list.cpp +index 1d2dcec..5d3f69e 100644 +--- a/src/livarot/sweep-tree-list.cpp ++++ b/src/livarot/sweep-tree-list.cpp +@@ -1,4 +1,4 @@ +-#include ++#include + #include "livarot/sweep-tree.h" + #include "livarot/sweep-tree-list.h" + +diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h +index e5f2301..ca22a07 100644 +--- a/src/live_effects/parameter/array.h ++++ b/src/live_effects/parameter/array.h +@@ -11,7 +11,7 @@ + + #include + +-#include ++#include + + #include + +diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h +index 8f5196d..851476f 100644 +--- a/src/live_effects/parameter/bool.h ++++ b/src/live_effects/parameter/bool.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "live_effects/parameter/parameter.h" + +diff --git a/src/live_effects/parameter/enum.h b/src/live_effects/parameter/enum.h +index 05f3bdd..2d2268e 100644 +--- a/src/live_effects/parameter/enum.h ++++ b/src/live_effects/parameter/enum.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "ui/widget/registered-enums.h" + #include +diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h +index 8fe9382..792c98a 100644 +--- a/src/live_effects/parameter/path.h ++++ b/src/live_effects/parameter/path.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include <2geom/path.h> + + #include +diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h +index ec61fcd..38fab1c 100644 +--- a/src/live_effects/parameter/point.h ++++ b/src/live_effects/parameter/point.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include <2geom/point.h> + + #include +diff --git a/src/live_effects/parameter/text.h b/src/live_effects/parameter/text.h +index 8539a80..8265430 100644 +--- a/src/live_effects/parameter/text.h ++++ b/src/live_effects/parameter/text.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + #include "display/canvas-bpath.h" + #include "live_effects/parameter/parameter.h" +diff --git a/src/live_effects/parameter/vector.h b/src/live_effects/parameter/vector.h +index a4c29d3..09581d2 100644 +--- a/src/live_effects/parameter/vector.h ++++ b/src/live_effects/parameter/vector.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include <2geom/point.h> + + #include +diff --git a/src/main-cmdlineact.h b/src/main-cmdlineact.h +index aca039f..03f0eb0 100644 +--- a/src/main-cmdlineact.h ++++ b/src/main-cmdlineact.h +@@ -15,7 +15,7 @@ + * Released under GNU GPL v2.x, read the file 'COPYING' for more information + */ + +-#include ++#include + + namespace Inkscape { + +diff --git a/src/main.cpp b/src/main.cpp +index d4b8271..5852d36 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -48,7 +48,6 @@ + + #include + #include +-#include + #include + #include + +diff --git a/src/message-context.cpp b/src/message-context.cpp +index 5055f41..6182c2c 100644 +--- a/src/message-context.cpp ++++ b/src/message-context.cpp +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include "message-context.h" + #include "message-stack.h" + +diff --git a/src/message-stack.cpp b/src/message-stack.cpp +index 05aec87..1c407e3 100644 +--- a/src/message-stack.cpp ++++ b/src/message-stack.cpp +@@ -10,7 +10,7 @@ + */ + + #include +-#include ++#include + #include + #include + #include "message-stack.h" +diff --git a/src/modifier-fns.h b/src/modifier-fns.h +index 02d3e8f..368791b 100644 +--- a/src/modifier-fns.h ++++ b/src/modifier-fns.h +@@ -12,7 +12,7 @@ + */ + + #include +-#include ++#include + + inline bool + mod_shift(guint const state) +diff --git a/src/number-opt-number.h b/src/number-opt-number.h +index 0025f2d..6a0e72f 100644 +--- a/src/number-opt-number.h ++++ b/src/number-opt-number.h +@@ -18,7 +18,6 @@ + #endif + + #include +-#include + //todo: use glib instead of stdlib + #include + #include "svg/stringstream.h" +diff --git a/src/object-hierarchy.h b/src/object-hierarchy.h +index c127a48..fa23219 100644 +--- a/src/object-hierarchy.h ++++ b/src/object-hierarchy.h +@@ -17,7 +17,7 @@ + #include + #include + #include +-#include ++#include + + class SPObject; + +diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp +index c44ab5b..c97b7c7 100644 +--- a/src/path-chemistry.cpp ++++ b/src/path-chemistry.cpp +@@ -22,7 +22,7 @@ + #include "xml/repr.h" + #include "svg/svg.h" + #include "display/curve.h" +-#include ++#include + #include + #include "sp-path.h" + #include "sp-text.h" +diff --git a/src/removeoverlap.h b/src/removeoverlap.h +index 5b16e70..1ba4157 100644 +--- a/src/removeoverlap.h ++++ b/src/removeoverlap.h +@@ -13,7 +13,7 @@ + #ifndef SEEN_REMOVEOVERLAP_H + #define SEEN_REMOVEOVERLAP_H + +-#include ++#include + + void removeoverlap(GSList const *items, double xGap, double yGap); + +diff --git a/src/sp-conn-end-pair.h b/src/sp-conn-end-pair.h +index bc5fa12..7ba42e9 100644 +--- a/src/sp-conn-end-pair.h ++++ b/src/sp-conn-end-pair.h +@@ -11,7 +11,7 @@ + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ +-#include ++#include + + #include "forward.h" + #include "libnr/nr-point.h" +diff --git a/src/sp-conn-end.h b/src/sp-conn-end.h +index 052e8dd..032f12e 100644 +--- a/src/sp-conn-end.h ++++ b/src/sp-conn-end.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_SP_CONN_END + #define SEEN_SP_CONN_END + +-#include ++#include + #include + #include + +diff --git a/src/sp-filter-fns.h b/src/sp-filter-fns.h +index 4e1b012..a1e2075 100644 +--- a/src/sp-filter-fns.h ++++ b/src/sp-filter-fns.h +@@ -5,7 +5,7 @@ + * Macros and fn declarations related to filters. + */ + +-#include ++#include + #include + #include "libnr/nr-forward.h" + #include "sp-filter-units.h" +diff --git a/src/sp-gaussian-blur-fns.h b/src/sp-gaussian-blur-fns.h +index 0307392..fe696dc 100644 +--- a/src/sp-gaussian-blur-fns.h ++++ b/src/sp-gaussian-blur-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/sp-gradient-fns.h b/src/sp-gradient-fns.h +index aabc3ed..e09717b 100644 +--- a/src/sp-gradient-fns.h ++++ b/src/sp-gradient-fns.h +@@ -5,7 +5,7 @@ + * Macros and fn declarations related to gradients. + */ + +-#include ++#include + #include + #include <2geom/forward.h> + #include "sp-gradient-spread.h" +diff --git a/src/sp-gradient-vector.h b/src/sp-gradient-vector.h +index 7bdfb51..d341daa 100644 +--- a/src/sp-gradient-vector.h ++++ b/src/sp-gradient-vector.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_SP_GRADIENT_VECTOR_H + #define SEEN_SP_GRADIENT_VECTOR_H + +-#include ++#include + #include + #include "color.h" + +diff --git a/src/sp-image.cpp b/src/sp-image.cpp +index 322e2d1..0c7f9ba 100644 +--- a/src/sp-image.cpp ++++ b/src/sp-image.cpp +@@ -30,6 +30,7 @@ + //#include + #include "display/nr-arena-image.h" + #include ++#include + #include + + //Added for preserveAspectRatio support -- EAF +diff --git a/src/sp-linear-gradient-fns.h b/src/sp-linear-gradient-fns.h +index 0962bae..636cc1c 100644 +--- a/src/sp-linear-gradient-fns.h ++++ b/src/sp-linear-gradient-fns.h +@@ -6,7 +6,7 @@ + */ + + #include +-#include ++#include + + namespace Inkscape { + namespace XML { +diff --git a/src/sp-metrics.h b/src/sp-metrics.h +index 23c1b6c..c2f9687 100644 +--- a/src/sp-metrics.h ++++ b/src/sp-metrics.h +@@ -1,8 +1,7 @@ + #ifndef SP_METRICS_H + #define SP_METRICS_H + +-#include +-#include ++#include + #include "sp-metric.h" + + gdouble sp_absolute_metric_to_metric (gdouble length_src, const SPMetric metric_src, const SPMetric metric_dst); +diff --git a/src/sp-radial-gradient.h b/src/sp-radial-gradient.h +index bec6cbe..528b527 100644 +--- a/src/sp-radial-gradient.h ++++ b/src/sp-radial-gradient.h +@@ -5,7 +5,7 @@ + * SPRadialGradient: SVG implementtion. + */ + +-#include ++#include + #include "sp-gradient.h" + #include "svg/svg-length.h" + #include "sp-radial-gradient-fns.h" +diff --git a/src/sp-stop.h b/src/sp-stop.h +index 2cf8ad6..96922eb 100644 +--- a/src/sp-stop.h ++++ b/src/sp-stop.h +@@ -8,7 +8,7 @@ + * Authors? + */ + +-#include ++#include + #include + #include "sp-object.h" + #include "color.h" +diff --git a/src/sp-text.h b/src/sp-text.h +index b90fe37..5db61ff 100644 +--- a/src/sp-text.h ++++ b/src/sp-text.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include + #include + #include "sp-item.h" +diff --git a/src/sp-textpath.h b/src/sp-textpath.h +index 1931966..18b42ec 100644 +--- a/src/sp-textpath.h ++++ b/src/sp-textpath.h +@@ -1,7 +1,7 @@ + #ifndef INKSCAPE_SP_TEXTPATH_H + #define INKSCAPE_SP_TEXTPATH_H + +-#include ++#include + #include "svg/svg-length.h" + #include "sp-item.h" + #include "sp-text.h" +diff --git a/src/sp-tspan.h b/src/sp-tspan.h +index def8051..6c40d86 100644 +--- a/src/sp-tspan.h ++++ b/src/sp-tspan.h +@@ -5,7 +5,7 @@ + * tspan and textpath, based on the flowtext routines + */ + +-#include ++#include + #include "sp-item.h" + #include "text-tag-attributes.h" + +diff --git a/src/splivarot.cpp b/src/splivarot.cpp +index 128fa23..89360d8 100644 +--- a/src/splivarot.cpp ++++ b/src/splivarot.cpp +@@ -20,7 +20,7 @@ + #include + #include + #include +-#include ++#include + #include "xml/repr.h" + #include "svg/svg.h" + #include "sp-path.h" +diff --git a/src/spray-context.cpp b/src/spray-context.cpp +index 2bdac19..7d57168 100644 +--- a/src/spray-context.cpp ++++ b/src/spray-context.cpp +@@ -29,7 +29,7 @@ + #include "svg/svg.h" + #include "display/canvas-bpath.h" + +-#include ++#include + #include "macros.h" + #include "document.h" + #include "selection.h" +diff --git a/src/svg/css-ostringstream.cpp b/src/svg/css-ostringstream.cpp +index a6eb278..865f6ae 100644 +--- a/src/svg/css-ostringstream.cpp ++++ b/src/svg/css-ostringstream.cpp +@@ -1,8 +1,7 @@ + #include "svg/css-ostringstream.h" + #include "svg/strip-trailing-zeros.h" + #include "preferences.h" +-#include +-#include ++#include + + Inkscape::CSSOStringStream::CSSOStringStream() + { +diff --git a/src/svg/css-ostringstream.h b/src/svg/css-ostringstream.h +index 48ecf29..93bf32d 100644 +--- a/src/svg/css-ostringstream.h ++++ b/src/svg/css-ostringstream.h +@@ -1,7 +1,7 @@ + #ifndef SVG_CSS_OSTRINGSTREAM_H_INKSCAPE + #define SVG_CSS_OSTRINGSTREAM_H_INKSCAPE + +-#include ++#include + #include + + namespace Inkscape { +diff --git a/src/svg/stringstream.h b/src/svg/stringstream.h +index 60ed74e..4623cbc 100644 +--- a/src/svg/stringstream.h ++++ b/src/svg/stringstream.h +@@ -1,7 +1,7 @@ + #ifndef INKSCAPE_STRINGSTREAM_H + #define INKSCAPE_STRINGSTREAM_H + +-#include ++#include + #include + #include + +diff --git a/src/svg/strip-trailing-zeros.cpp b/src/svg/strip-trailing-zeros.cpp +index 769834d..daad8b9 100644 +--- a/src/svg/strip-trailing-zeros.cpp ++++ b/src/svg/strip-trailing-zeros.cpp +@@ -1,7 +1,7 @@ + + #include + #include +-#include ++#include + + #include "svg/strip-trailing-zeros.h" + +diff --git a/src/svg/svg-affine.cpp b/src/svg/svg-affine.cpp +index 91a9fa7..658991a 100644 +--- a/src/svg/svg-affine.cpp ++++ b/src/svg/svg-affine.cpp +@@ -19,7 +19,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include <2geom/transforms.h> +diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp +index 04f3877..4d727c3 100644 +--- a/src/svg/svg-color.cpp ++++ b/src/svg/svg-color.cpp +@@ -23,12 +23,7 @@ + #include + #include + #include +-#include +-#include // g_assert +-#include +-#include +-#include +-#include ++#include + #include + + #include "strneq.h" +diff --git a/src/svg/svg-color.h b/src/svg/svg-color.h +index a3868c1..d1c7bee 100644 +--- a/src/svg/svg-color.h ++++ b/src/svg/svg-color.h +@@ -1,7 +1,7 @@ + #ifndef SVG_SVG_COLOR_H_SEEN + #define SVG_SVG_COLOR_H_SEEN + +-#include ++#include + + class SVGICCColor; + +diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp +index 94f1cf3..ae5f758 100644 +--- a/src/svg/svg-length.cpp ++++ b/src/svg/svg-length.cpp +@@ -19,7 +19,7 @@ + #include + #include + #include +-#include ++#include + + #include "svg.h" + #include "stringstream.h" +diff --git a/src/svg/svg-length.h b/src/svg/svg-length.h +index 1f4be81..f5631b1 100644 +--- a/src/svg/svg-length.h ++++ b/src/svg/svg-length.h +@@ -16,7 +16,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + + class SVGLength + { +diff --git a/src/svg/svg-path-geom-test.h b/src/svg/svg-path-geom-test.h +index 1a084d5..a1bd4d7 100644 +--- a/src/svg/svg-path-geom-test.h ++++ b/src/svg/svg-path-geom-test.h +@@ -8,7 +8,7 @@ + #include + #include + #include +-#include ++#include + + class SvgPathGeomTest : public CxxTest::TestSuite + { +diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp +index bbf1589..b58ec40 100644 +--- a/src/svg/svg-path.cpp ++++ b/src/svg/svg-path.cpp +@@ -31,10 +31,7 @@ + #include + #include + #include +-#include +-#include +-#include +-#include // g_assert() ++#include + + #include "svg/svg.h" + #include "svg/path-string.h" +diff --git a/src/svg/svg.h b/src/svg/svg.h +index 0b2c3ae..7ff8ecc 100644 +--- a/src/svg/svg.h ++++ b/src/svg/svg.h +@@ -11,7 +11,7 @@ + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ +-#include ++#include + #include + #include + #include +diff --git a/src/text-editing.h b/src/text-editing.h +index 038458f..9777c67 100644 +--- a/src/text-editing.h ++++ b/src/text-editing.h +@@ -13,7 +13,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include // std::pair + #include "libnrtype/Layout-TNG.h" + #include +diff --git a/src/text-tag-attributes.h b/src/text-tag-attributes.h +index 197bfb7..1c73869 100644 +--- a/src/text-tag-attributes.h ++++ b/src/text-tag-attributes.h +@@ -2,7 +2,7 @@ + #define INKSCAPE_TEXT_TAG_ATTRIBUTES_H + + #include +-#include ++#include + #include "libnrtype/Layout-TNG.h" + #include "svg/svg-length.h" + +diff --git a/src/trace/potrace/potracelib.cpp b/src/trace/potrace/potracelib.cpp +index 136f7a9..9505aa0 100644 +--- a/src/trace/potrace/potracelib.cpp ++++ b/src/trace/potrace/potracelib.cpp +@@ -4,7 +4,7 @@ + + #include + #include +-#include ++#include + + #include "potracelib.h" + #include "inkscape-version.h" +diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp +index 904d0cb..ce6a515 100644 +--- a/src/tweak-context.cpp ++++ b/src/tweak-context.cpp +@@ -22,7 +22,7 @@ + #include "svg/svg.h" + #include "display/canvas-bpath.h" + +-#include ++#include + #include "macros.h" + #include "document.h" + #include "selection.h" +diff --git a/src/ui/cache/svg_preview_cache.cpp b/src/ui/cache/svg_preview_cache.cpp +index 6e05f6c..c13d41f 100644 +--- a/src/ui/cache/svg_preview_cache.cpp ++++ b/src/ui/cache/svg_preview_cache.cpp +@@ -19,7 +19,7 @@ + # include "config.h" + #endif + +-#include ++#include + #include + #include "sp-namedview.h" + #include "selection.h" +diff --git a/src/ui/dialog/desktop-tracker.h b/src/ui/dialog/desktop-tracker.h +index b5b83b5..dc492d2 100644 +--- a/src/ui/dialog/desktop-tracker.h ++++ b/src/ui/dialog/desktop-tracker.h +@@ -13,7 +13,7 @@ + + #include + #include +-#include ++#include + + typedef struct _GtkWidget GtkWidget; + class SPDesktop; +diff --git a/src/ui/dialog/dialog-manager.h b/src/ui/dialog/dialog-manager.h +index a97b58c..f088b16 100644 +--- a/src/ui/dialog/dialog-manager.h ++++ b/src/ui/dialog/dialog-manager.h +@@ -14,7 +14,7 @@ + #ifndef INKSCAPE_UI_DIALOG_MANAGER_H + #define INKSCAPE_UI_DIALOG_MANAGER_H + +-#include ++#include + #include "dialog.h" + #include + +diff --git a/src/ui/dialog/icon-preview.cpp b/src/ui/dialog/icon-preview.cpp +index cbd2769..306e990 100644 +--- a/src/ui/dialog/icon-preview.cpp ++++ b/src/ui/dialog/icon-preview.cpp +@@ -16,7 +16,7 @@ + #endif + + #include +-#include ++#include + #include + #include + #include +diff --git a/src/ui/dialog/input.cpp b/src/ui/dialog/input.cpp +index 8c98515..1cd8eac 100644 +--- a/src/ui/dialog/input.cpp ++++ b/src/ui/dialog/input.cpp +@@ -11,7 +11,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +diff --git a/src/ui/widget/icon-widget.cpp b/src/ui/widget/icon-widget.cpp +index 64415f4..210b3dc 100644 +--- a/src/ui/widget/icon-widget.cpp ++++ b/src/ui/widget/icon-widget.cpp +@@ -14,7 +14,7 @@ + # include + #endif + +-#include ++#include + #include "icon-widget.h" + + namespace Inkscape { +diff --git a/src/ui/widget/spin-slider.cpp b/src/ui/widget/spin-slider.cpp +index e3e73a5..69bfb6d 100644 +--- a/src/ui/widget/spin-slider.cpp ++++ b/src/ui/widget/spin-slider.cpp +@@ -10,7 +10,7 @@ + * Released under GNU GPL. Read the file 'COPYING' for more information. + */ + +-#include "glib/gstrfuncs.h" ++#include + #include "glibmm/i18n.h" + + #include "spin-slider.h" +diff --git a/src/unclump.h b/src/unclump.h +index c5a8bf7..82dd272 100644 +--- a/src/unclump.h ++++ b/src/unclump.h +@@ -11,7 +11,7 @@ + #ifndef SEEN_DIALOGS_UNCLUMP_H + #define SEEN_DIALOGS_UNCLUMP_H + +-#include ++#include + + void unclump(GSList *items); + +diff --git a/src/uri.h b/src/uri.h +index 1c890a6..38a4707 100644 +--- a/src/uri.h ++++ b/src/uri.h +@@ -14,7 +14,7 @@ + #ifndef INKSCAPE_URI_H + #define INKSCAPE_URI_H + +-#include ++#include + #include + #include + #include "bad-uri-exception.h" +diff --git a/src/util/glib-list-iterators.h b/src/util/glib-list-iterators.h +index 586bc31..9e73fa6 100644 +--- a/src/util/glib-list-iterators.h ++++ b/src/util/glib-list-iterators.h +@@ -17,8 +17,7 @@ + + #include + #include +-#include "glib/gslist.h" +-#include "glib/glist.h" ++#include + + namespace Inkscape { + +diff --git a/src/util/share.cpp b/src/util/share.cpp +index 2f693fa..f74de23 100644 +--- a/src/util/share.cpp ++++ b/src/util/share.cpp +@@ -10,7 +10,7 @@ + */ + + #include "util/share.h" +-#include ++#include + + namespace Inkscape { + namespace Util { +diff --git a/src/version.cpp b/src/version.cpp +index edaa600..ef7fbe2 100644 +--- a/src/version.cpp ++++ b/src/version.cpp +@@ -12,7 +12,7 @@ + */ + + #include +-#include ++#include + #include "version.h" + + gboolean sp_version_from_string(const gchar *string, Inkscape::Version *version) +diff --git a/src/version.h b/src/version.h +index c620631..0a0381c 100644 +--- a/src/version.h ++++ b/src/version.h +@@ -10,7 +10,7 @@ + #ifndef SEEN_INKSCAPE_VERSION_H + #define SEEN_INKSCAPE_VERSION_H + +-#include ++#include + + #define SVG_VERSION "1.1" + +diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp +index 851abe9..2a814fe 100644 +--- a/src/widgets/icon.cpp ++++ b/src/widgets/icon.cpp +@@ -16,7 +16,7 @@ + #endif + + #include +-#include ++#include + #include + #include + +diff --git a/src/widgets/sp-color-icc-selector.h b/src/widgets/sp-color-icc-selector.h +index f76b258..f6e7cca 100644 +--- a/src/widgets/sp-color-icc-selector.h ++++ b/src/widgets/sp-color-icc-selector.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_SP_COLOR_ICC_SELECTOR_H + #define SEEN_SP_COLOR_ICC_SELECTOR_H + +-#include ++#include + #include + + #include "../color.h" +diff --git a/src/widgets/sp-color-scales.h b/src/widgets/sp-color-scales.h +index b50c386..38219b5 100644 +--- a/src/widgets/sp-color-scales.h ++++ b/src/widgets/sp-color-scales.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_SP_COLOR_SCALES_H + #define SEEN_SP_COLOR_SCALES_H + +-#include ++#include + #include + + #include +diff --git a/src/widgets/sp-color-wheel-selector.h b/src/widgets/sp-color-wheel-selector.h +index 56bc8af..4124b1f 100644 +--- a/src/widgets/sp-color-wheel-selector.h ++++ b/src/widgets/sp-color-wheel-selector.h +@@ -1,7 +1,7 @@ + #ifndef SEEN_SP_COLOR_WHEEL_SELECTOR_H + #define SEEN_SP_COLOR_WHEEL_SELECTOR_H + +-#include ++#include + #include + + #include "../color.h" +diff --git a/src/widgets/spinbutton-events.h b/src/widgets/spinbutton-events.h +index a9ff741..5092861 100644 +--- a/src/widgets/spinbutton-events.h ++++ b/src/widgets/spinbutton-events.h +@@ -9,7 +9,7 @@ + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +-#include ++#include + #include /* GtkWidget */ + + gboolean spinbutton_focus_in (GtkWidget *w, GdkEventKey *event, gpointer data); +diff --git a/src/widgets/spw-utilities.h b/src/widgets/spw-utilities.h +index 78f7937..f0ec2f4 100644 +--- a/src/widgets/spw-utilities.h ++++ b/src/widgets/spw-utilities.h +@@ -18,7 +18,7 @@ + SPObject, that reacts to modification. + */ + +-#include ++#include + + typedef struct _GtkWidget GtkWidget; + +diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp +index f020b0c..907952f 100644 +--- a/src/widgets/stroke-style.cpp ++++ b/src/widgets/stroke-style.cpp +@@ -18,7 +18,7 @@ + + #define noSP_SS_VERBOSE + +-#include ++#include + #include + #include + +diff --git a/src/xml/attribute-record.h b/src/xml/attribute-record.h +index bab0b5a..a61329b 100644 +--- a/src/xml/attribute-record.h ++++ b/src/xml/attribute-record.h +@@ -5,8 +5,7 @@ + #ifndef SEEN_XML_SP_REPR_ATTR_H + #define SEEN_XML_SP_REPR_ATTR_H + +-#include +-#include ++#include + #include "gc-managed.h" + #include "util/share.h" + +diff --git a/src/xml/comment-node.h b/src/xml/comment-node.h +index 698a30a..ec94691 100644 +--- a/src/xml/comment-node.h ++++ b/src/xml/comment-node.h +@@ -15,7 +15,7 @@ + #ifndef SEEN_INKSCAPE_XML_COMMENT_NODE_H + #define SEEN_INKSCAPE_XML_COMMENT_NODE_H + +-#include ++#include + #include "xml/simple-node.h" + + namespace Inkscape { +diff --git a/src/xml/croco-node-iface.cpp b/src/xml/croco-node-iface.cpp +index db98e3d..e67eeac 100644 +--- a/src/xml/croco-node-iface.cpp ++++ b/src/xml/croco-node-iface.cpp +@@ -1,7 +1,7 @@ + + #include + #include +-#include ++#include + + #include "xml/croco-node-iface.h" + #include "xml/node.h" +diff --git a/src/xml/event.h b/src/xml/event.h +index c622577..acd2bfc 100644 +--- a/src/xml/event.h ++++ b/src/xml/event.h +@@ -18,8 +18,7 @@ + #ifndef SEEN_INKSCAPE_XML_SP_REPR_ACTION_H + #define SEEN_INKSCAPE_XML_SP_REPR_ACTION_H + +-#include +-#include ++#include + #include + + #include +diff --git a/src/xml/node-event-vector.h b/src/xml/node-event-vector.h +index 0c291c2..e639687 100644 +--- a/src/xml/node-event-vector.h ++++ b/src/xml/node-event-vector.h +@@ -14,7 +14,7 @@ + #ifndef SEEN_INKSCAPE_XML_SP_REPR_EVENT_VECTOR + #define SEEN_INKSCAPE_XML_SP_REPR_EVENT_VECTOR + +-#include ++#include + + #include "xml/node.h" + +diff --git a/src/xml/node-observer.h b/src/xml/node-observer.h +index ca787c2..44f11e5 100644 +--- a/src/xml/node-observer.h ++++ b/src/xml/node-observer.h +@@ -18,7 +18,7 @@ + #ifndef SEEN_INKSCAPE_XML_NODE_OBSERVER_H + #define SEEN_INKSCAPE_XML_NODE_OBSERVER_H + +-#include ++#include + #include "util/share.h" + #include "xml/xml-forward.h" + +diff --git a/src/xml/node.h b/src/xml/node.h +index abcccdb..ad3f3de 100644 +--- a/src/xml/node.h ++++ b/src/xml/node.h +@@ -18,7 +18,7 @@ + #ifndef SEEN_INKSCAPE_XML_NODE_H + #define SEEN_INKSCAPE_XML_NODE_H + +-#include ++#include + #include "gc-anchored.h" + #include "util/list.h" + #include "xml/xml-forward.h" +diff --git a/src/xml/pi-node.h b/src/xml/pi-node.h +index 4aa1f84..548216a 100644 +--- a/src/xml/pi-node.h ++++ b/src/xml/pi-node.h +@@ -14,7 +14,7 @@ + #ifndef SEEN_INKSCAPE_XML_PI_NODE_H + #define SEEN_INKSCAPE_XML_PI_NODE_H + +-#include ++#include + #include "xml/simple-node.h" + + namespace Inkscape { +diff --git a/src/xml/quote.cpp b/src/xml/quote.cpp +index 37f00ba..166cf26 100644 +--- a/src/xml/quote.cpp ++++ b/src/xml/quote.cpp +@@ -12,7 +12,7 @@ + */ + + #include +-#include ++#include + + + /** \return strlen(xml_quote_strdup(\a val)) (without doing the malloc). +diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp +index c387672..c27e9dd 100644 +--- a/src/xml/rebase-hrefs.cpp ++++ b/src/xml/rebase-hrefs.cpp +@@ -7,9 +7,7 @@ + #include "util/share.h" + #include "xml/attribute-record.h" + #include "xml/node.h" +-#include +-#include +-#include ++#include + using Inkscape::XML::AttributeRecord; + + +diff --git a/src/xml/rebase-hrefs.h b/src/xml/rebase-hrefs.h +index b4f288c..ae29a75 100644 +--- a/src/xml/rebase-hrefs.h ++++ b/src/xml/rebase-hrefs.h +@@ -1,7 +1,7 @@ + #ifndef REBASE_HREFS_H_SEEN + #define REBASE_HREFS_H_SEEN + +-#include ++#include + #include "util/list.h" + #include "xml/attribute-record.h" + struct SPDocument; +diff --git a/src/xml/repr.h b/src/xml/repr.h +index 549822e..b6482e6 100644 +--- a/src/xml/repr.h ++++ b/src/xml/repr.h +@@ -14,7 +14,7 @@ + #define __SP_REPR_H__ + + #include +-#include ++#include + #include "gc-anchored.h" + + #include "xml/node.h" +diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp +index 7ecdc1b..0c781e2 100644 +--- a/src/xml/simple-node.cpp ++++ b/src/xml/simple-node.cpp +@@ -16,7 +16,7 @@ + + #include + #include +-#include ++#include + + #include "xml/node.h" + #include "xml/simple-node.h" +diff --git a/src/xml/text-node.h b/src/xml/text-node.h +index ef6e477..5948bc1 100644 +--- a/src/xml/text-node.h ++++ b/src/xml/text-node.h +@@ -15,7 +15,7 @@ + #ifndef SEEN_INKSCAPE_XML_TEXT_NODE_H + #define SEEN_INKSCAPE_XML_TEXT_NODE_H + +-#include ++#include + #include "xml/simple-node.h" + + namespace Inkscape { diff --git a/inkscape-poppler.patch b/inkscape-poppler.patch new file mode 100644 index 0000000..3fcf114 --- /dev/null +++ b/inkscape-poppler.patch @@ -0,0 +1,811 @@ +--- inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp 2011-07-08 20:25:09.000000000 +0200 ++++ inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp 2012-05-27 02:17:07.253947245 +0200 +@@ -19,7 +19,7 @@ + #endif + + extern "C" { +- ++ + #include + #include + #include +@@ -298,7 +298,7 @@ + // do not clip if it's not needed + if (cropBox->x1 != 0.0 || cropBox->y1 != 0.0 || + cropBox->x2 != state->getPageWidth() || cropBox->y2 != state->getPageHeight()) { +- ++ + state->moveTo(cropBox->x1, cropBox->y1); + state->lineTo(cropBox->x2, cropBox->y1); + state->lineTo(cropBox->x2, cropBox->y2); +@@ -331,7 +331,7 @@ + state = new GfxState(72, 72, box, 0, gFalse); + clipHistory = new ClipHistoryEntry(); + setDefaultApproximationPrecision(); +- ++ + fontChanged = gFalse; + clip = clipNone; + ignoreUndef = 0; +@@ -367,14 +367,14 @@ + for (i = 0; i < obj->arrayGetLength(); ++i) { + obj->arrayGet(i, &obj2); + if (!obj2.isStream()) { +- error(-1, const_cast("Weird page contents")); ++ error(errInternal, -1, const_cast("Weird page contents")); + obj2.free(); + return; + } + obj2.free(); + } + } else if (!obj->isStream()) { +- error(-1, const_cast("Weird page contents")); ++ error(errInternal, -1, const_cast("Weird page contents")); + return; + } + parser = new Parser(xref, new Lexer(xref, obj), gFalse); +@@ -419,7 +419,7 @@ + + // too many arguments - something is wrong + } else { +- error(getPos(), const_cast("Too many args in content stream")); ++ error(errInternal, getPos(), const_cast("Too many args in content stream")); + if (printCommands) { + printf("throwing away arg: "); + obj.print(stdout); +@@ -436,7 +436,7 @@ + + // args at end with no command + if (numArgs > 0) { +- error(getPos(), const_cast("Leftover args in content stream")); ++ error(errInternal, getPos(), const_cast("Leftover args in content stream")); + if (printCommands) { + printf("%d leftovers:", numArgs); + for (i = 0; i < numArgs; ++i) { +@@ -502,7 +502,7 @@ + name = cmd->getCmd(); + if (!(op = findOp(name))) { + if (ignoreUndef == 0) +- error(getPos(), const_cast("Unknown operator '%s'"), name); ++ error(errInternal, getPos(), const_cast("Unknown operator '%s'"), name); + return; + } + +@@ -510,26 +510,26 @@ + argPtr = args; + if (op->numArgs >= 0) { + if (numArgs < op->numArgs) { +- error(getPos(), const_cast("Too few (%d) args to '%s' operator"), numArgs, name); ++ error(errInternal, getPos(), const_cast("Too few (%d) args to '%s' operator"), numArgs, name); + return; + } + if (numArgs > op->numArgs) { + #if 0 +- error(getPos(), "Too many (%d) args to '%s' operator", numArgs, name); ++ error(errInternal, getPos(), "Too many (%d) args to '%s' operator", numArgs, name); + #endif + argPtr += numArgs - op->numArgs; + numArgs = op->numArgs; + } + } else { + if (numArgs > -op->numArgs) { +- error(getPos(), const_cast("Too many (%d) args to '%s' operator"), ++ error(errInternal, getPos(), const_cast("Too many (%d) args to '%s' operator"), + numArgs, name); + return; + } + } + for (i = 0; i < numArgs; ++i) { + if (!checkArg(&argPtr[i], op->tchk[i])) { +- error(getPos(), const_cast("Arg #%d to '%s' operator is wrong type (%s)"), ++ error(errInternal, getPos(), const_cast("Arg #%d to '%s' operator is wrong type (%s)"), + i, name, argPtr[i].getTypeName()); + return; + } +@@ -690,7 +690,7 @@ + return; + } + if (!obj1.isDict()) { +- error(getPos(), const_cast("ExtGState '%s' is wrong type"), args[0].getName()); ++ error(errInternal, getPos(), const_cast("ExtGState '%s' is wrong type"), args[0].getName()); + obj1.free(); + return; + } +@@ -705,7 +705,7 @@ + if (state->parseBlendMode(&obj2, &mode)) { + state->setBlendMode(mode); + } else { +- error(getPos(), const_cast("Invalid blend mode in ExtGState")); ++ error(errInternal, getPos(), const_cast("Invalid blend mode in ExtGState")); + } + } + obj2.free(); +@@ -764,7 +764,7 @@ + state->setTransfer(funcs); + } + } else if (!obj2.isNull()) { +- error(getPos(), const_cast("Invalid transfer function in ExtGState")); ++ error(errInternal, getPos(), const_cast("Invalid transfer function in ExtGState")); + } + obj2.free(); + +@@ -784,7 +784,7 @@ + funcs[0] = Function::parse(&obj3); + if (funcs[0]->getInputSize() != 1 || + funcs[0]->getOutputSize() != 1) { +- error(getPos(), ++ error(errInternal, getPos(), + const_cast("Invalid transfer function in soft mask in ExtGState")); + delete funcs[0]; + funcs[0] = NULL; +@@ -809,11 +809,7 @@ + blendingColorSpace = NULL; + isolated = knockout = gFalse; + if (!obj4.dictLookup(const_cast("CS"), &obj5)->isNull()) { +-#ifdef POPPLER_NEW_COLOR_SPACE_API + blendingColorSpace = GfxColorSpace::parse(&obj5, NULL); +-#else +- blendingColorSpace = GfxColorSpace::parse(&obj5); +-#endif + } + obj5.free(); + if (obj4.dictLookup(const_cast("I"), &obj5)->isBool()) { +@@ -840,15 +836,15 @@ + delete funcs[0]; + } + } else { +- error(getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); ++ error(errInternal, getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); + } + obj4.free(); + } else { +- error(getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); ++ error(errInternal, getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); + } + obj3.free(); + } else if (!obj2.isNull()) { +- error(getPos(), const_cast("Invalid soft mask in ExtGState")); ++ error(errInternal, getPos(), const_cast("Invalid soft mask in ExtGState")); + } + } + obj2.free(); +@@ -876,7 +872,7 @@ + // check form type + dict->lookup(const_cast("FormType"), &obj1); + if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) { +- error(getPos(), const_cast("Unknown form type")); ++ error(errInternal, getPos(), const_cast("Unknown form type")); + } + obj1.free(); + +@@ -884,7 +880,7 @@ + dict->lookup(const_cast("BBox"), &obj1); + if (!obj1.isArray()) { + obj1.free(); +- error(getPos(), const_cast("Bad form bounding box")); ++ error(errInternal, getPos(), const_cast("Bad form bounding box")); + return; + } + for (i = 0; i < 4; ++i) { +@@ -1012,19 +1008,11 @@ + + state->setFillPattern(NULL); + res->lookupColorSpace(args[0].getName(), &obj); +-#ifdef POPPLER_NEW_COLOR_SPACE_API + if (obj.isNull()) { + colorSpace = GfxColorSpace::parse(&args[0], NULL); + } else { + colorSpace = GfxColorSpace::parse(&obj, NULL); + } +-#else +- if (obj.isNull()) { +- colorSpace = GfxColorSpace::parse(&args[0]); +- } else { +- colorSpace = GfxColorSpace::parse(&obj); +- } +-#endif + obj.free(); + if (colorSpace) { + state->setFillColorSpace(colorSpace); +@@ -1032,7 +1020,7 @@ + state->setFillColor(&color); + builder->updateStyle(state); + } else { +- error(getPos(), const_cast("Bad color space (fill)")); ++ error(errInternal, getPos(), const_cast("Bad color space (fill)")); + } + } + +@@ -1043,19 +1031,11 @@ + + state->setStrokePattern(NULL); + res->lookupColorSpace(args[0].getName(), &obj); +-#ifdef POPPLER_NEW_COLOR_SPACE_API + if (obj.isNull()) { + colorSpace = GfxColorSpace::parse(&args[0], NULL); + } else { + colorSpace = GfxColorSpace::parse(&obj, NULL); + } +-#else +- if (obj.isNull()) { +- colorSpace = GfxColorSpace::parse(&args[0]); +- } else { +- colorSpace = GfxColorSpace::parse(&obj); +- } +-#endif + obj.free(); + if (colorSpace) { + state->setStrokeColorSpace(colorSpace); +@@ -1063,7 +1043,7 @@ + state->setStrokeColor(&color); + builder->updateStyle(state); + } else { +- error(getPos(), const_cast("Bad color space (stroke)")); ++ error(errInternal, getPos(), const_cast("Bad color space (stroke)")); + } + } + +@@ -1072,7 +1052,7 @@ + int i; + + if (numArgs != state->getFillColorSpace()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'sc' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'sc' command")); + return; + } + state->setFillPattern(NULL); +@@ -1088,7 +1068,7 @@ + int i; + + if (numArgs != state->getStrokeColorSpace()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'SC' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'SC' command")); + return; + } + state->setStrokePattern(NULL); +@@ -1109,7 +1089,7 @@ + if (!((GfxPatternColorSpace *)state->getFillColorSpace())->getUnder() || + numArgs - 1 != ((GfxPatternColorSpace *)state->getFillColorSpace()) + ->getUnder()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'scn' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'scn' command")); + return; + } + for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { +@@ -1120,23 +1100,15 @@ + state->setFillColor(&color); + builder->updateStyle(state); + } +-#ifdef POPPLER_NEW_COLOR_SPACE_API + if (args[numArgs-1].isName() && + (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { + state->setFillPattern(pattern); + builder->updateStyle(state); + } +-#else +- if (args[numArgs-1].isName() && +- (pattern = res->lookupPattern(args[numArgs-1].getName()))) { +- state->setFillPattern(pattern); +- builder->updateStyle(state); +- } +-#endif + + } else { + if (numArgs != state->getFillColorSpace()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'scn' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'scn' command")); + return; + } + state->setFillPattern(NULL); +@@ -1161,7 +1133,7 @@ + ->getUnder() || + numArgs - 1 != ((GfxPatternColorSpace *)state->getStrokeColorSpace()) + ->getUnder()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); + return; + } + for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { +@@ -1172,23 +1144,15 @@ + state->setStrokeColor(&color); + builder->updateStyle(state); + } +-#ifdef POPPLER_NEW_COLOR_SPACE_API + if (args[numArgs-1].isName() && + (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { + state->setStrokePattern(pattern); + builder->updateStyle(state); + } +-#else +- if (args[numArgs-1].isName() && +- (pattern = res->lookupPattern(args[numArgs-1].getName()))) { +- state->setStrokePattern(pattern); +- builder->updateStyle(state); +- } +-#endif + + } else { + if (numArgs != state->getStrokeColorSpace()->getNComps()) { +- error(getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); ++ error(errInternal, getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); + return; + } + state->setStrokePattern(NULL); +@@ -1212,7 +1176,7 @@ + + void PdfParser::opLineTo(Object args[], int numArgs) { + if (!state->isCurPt()) { +- error(getPos(), const_cast("No current point in lineto")); ++ error(errInternal, getPos(), const_cast("No current point in lineto")); + return; + } + state->lineTo(args[0].getNum(), args[1].getNum()); +@@ -1222,7 +1186,7 @@ + double x1, y1, x2, y2, x3, y3; + + if (!state->isCurPt()) { +- error(getPos(), const_cast("No current point in curveto")); ++ error(errInternal, getPos(), const_cast("No current point in curveto")); + return; + } + x1 = args[0].getNum(); +@@ -1238,7 +1202,7 @@ + double x1, y1, x2, y2, x3, y3; + + if (!state->isCurPt()) { +- error(getPos(), const_cast("No current point in curveto1")); ++ error(errInternal, getPos(), const_cast("No current point in curveto1")); + return; + } + x1 = state->getCurX(); +@@ -1254,7 +1218,7 @@ + double x1, y1, x2, y2, x3, y3; + + if (!state->isCurPt()) { +- error(getPos(), const_cast("No current point in curveto2")); ++ error(errInternal, getPos(), const_cast("No current point in curveto2")); + return; + } + x1 = args[0].getNum(); +@@ -1282,7 +1246,7 @@ + + void PdfParser::opClosePath(Object args[], int numArgs) { + if (!state->isCurPt()) { +- error(getPos(), const_cast("No current point in closepath")); ++ error(errInternal, getPos(), const_cast("No current point in closepath")); + return; + } + state->closePath(); +@@ -1298,7 +1262,7 @@ + + void PdfParser::opStroke(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in stroke")); ++ //error(errInternal, getPos(), const_cast("No path in stroke")); + return; + } + if (state->isPath()) { +@@ -1314,7 +1278,7 @@ + + void PdfParser::opCloseStroke(Object * /*args[]*/, int /*numArgs*/) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in closepath/stroke")); ++ //error(errInternal, getPos(), const_cast("No path in closepath/stroke")); + return; + } + state->closePath(); +@@ -1331,7 +1295,7 @@ + + void PdfParser::opFill(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in fill")); ++ //error(errInternal, getPos(), const_cast("No path in fill")); + return; + } + if (state->isPath()) { +@@ -1347,7 +1311,7 @@ + + void PdfParser::opEOFill(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in eofill")); ++ //error(errInternal, getPos(), const_cast("No path in eofill")); + return; + } + if (state->isPath()) { +@@ -1363,7 +1327,7 @@ + + void PdfParser::opFillStroke(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in fill/stroke")); ++ //error(errInternal, getPos(), const_cast("No path in fill/stroke")); + return; + } + if (state->isPath()) { +@@ -1376,7 +1340,7 @@ + + void PdfParser::opCloseFillStroke(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in closepath/fill/stroke")); ++ //error(errInternal, getPos(), const_cast("No path in closepath/fill/stroke")); + return; + } + if (state->isPath()) { +@@ -1388,7 +1352,7 @@ + + void PdfParser::opEOFillStroke(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in eofill/stroke")); ++ //error(errInternal, getPos(), const_cast("No path in eofill/stroke")); + return; + } + if (state->isPath()) { +@@ -1399,7 +1363,7 @@ + + void PdfParser::opCloseEOFillStroke(Object args[], int numArgs) { + if (!state->isCurPt()) { +- //error(getPos(), const_cast("No path in closepath/eofill/stroke")); ++ //error(errInternal, getPos(), const_cast("No path in closepath/eofill/stroke")); + return; + } + if (state->isPath()) { +@@ -1440,7 +1404,7 @@ + doShadingPatternFillFallback((GfxShadingPattern *)pattern, gFalse, eoFill); + break; + default: +- error(getPos(), const_cast("Unimplemented pattern type (%d) in fill"), ++ error(errInternal, getPos(), const_cast("Unimplemented pattern type (%d) in fill"), + pattern->getType()); + break; + } +@@ -1459,7 +1423,7 @@ + doShadingPatternFillFallback((GfxShadingPattern *)pattern, gTrue, gFalse); + break; + default: +- error(getPos(), const_cast("Unimplemented pattern type (%d) in stroke"), ++ error(errInternal, getPos(), const_cast("Unimplemented pattern type (%d) in stroke"), + pattern->getType()); + break; + } +@@ -1579,15 +1543,9 @@ + double *matrix = NULL; + GBool savedState = gFalse; + +-#ifdef POPPLER_NEW_COLOR_SPACE_API + if (!(shading = res->lookupShading(args[0].getName(), NULL))) { + return; + } +-#else +- if (!(shading = res->lookupShading(args[0].getName()))) { +- return; +- } +-#endif + + // save current graphics state + if (shading->getType() != 2 && shading->getType() != 3) { +@@ -1768,14 +1726,14 @@ + colors2[2] = colorM0; + colors2[3] = colorMM; + doFunctionShFill1(shading, x0, y0, xM, yM, colors2, depth + 1); +- ++ + // lower-left sub-rectangle + colors2[0] = color0M; + colors2[1] = colors[1]; + colors2[2] = colorMM; + colors2[3] = colorM1; + doFunctionShFill1(shading, x0, yM, xM, y1, colors2, depth + 1); +- ++ + // upper-right sub-rectangle + colors2[0] = colorM0; + colors2[1] = colorMM; +@@ -2156,7 +2114,7 @@ + + void PdfParser::opShowText(Object args[], int numArgs) { + if (!state->getFont()) { +- error(getPos(), const_cast("No font in show")); ++ error(errInternal, getPos(), const_cast("No font in show")); + return; + } + if (fontChanged) { +@@ -2170,7 +2128,7 @@ + double tx, ty; + + if (!state->getFont()) { +- error(getPos(), const_cast("No font in move/show")); ++ error(errInternal, getPos(), const_cast("No font in move/show")); + return; + } + if (fontChanged) { +@@ -2188,7 +2146,7 @@ + double tx, ty; + + if (!state->getFont()) { +- error(getPos(), const_cast("No font in move/set/show")); ++ error(errInternal, getPos(), const_cast("No font in move/set/show")); + return; + } + if (fontChanged) { +@@ -2211,7 +2169,7 @@ + int i; + + if (!state->getFont()) { +- error(getPos(), const_cast("No font in show/space")); ++ error(errInternal, getPos(), const_cast("No font in show/space")); + return; + } + if (fontChanged) { +@@ -2236,7 +2194,7 @@ + } else if (obj.isString()) { + doShowText(obj.getString()); + } else { +- error(getPos(), const_cast("Element of show/space array must be number or string")); ++ error(errInternal, getPos(), const_cast("Element of show/space array must be number or string")); + } + obj.free(); + } +@@ -2248,7 +2206,7 @@ + * The `POPPLER_NEW_GFXFONT' stuff is for the change to GfxFont's getNextChar() call. + * Thanks to tsdgeos for the fix. + * Miklos, does this look ok? +- */ ++ */ + + void PdfParser::doShowText(GooString *s) { + GfxFont *font; +@@ -2334,7 +2292,7 @@ + if (charProc.isStream()) { + //parse(&charProc, gFalse); // TODO: parse into SVG font + } else { +- error(getPos(), const_cast("Missing or bad Type3 CharProc entry")); ++ error(errInternal, getPos(), const_cast("Missing or bad Type3 CharProc entry")); + } + //out->endType3Char(state); + if (resDict) { +@@ -2366,7 +2324,7 @@ + u, (int)(sizeof(u) / sizeof(Unicode)), &uLen, + #endif + &dx, &dy, &originX, &originY); +- ++ + if (wMode) { + dx *= state->getFontSize(); + dy = dy * state->getFontSize() + state->getCharSpace(); +@@ -2410,7 +2368,7 @@ + return; + } + if (!obj1.isStream()) { +- error(getPos(), const_cast("XObject '%s' is wrong type"), name); ++ error(errInternal, getPos(), const_cast("XObject '%s' is wrong type"), name); + obj1.free(); + return; + } +@@ -2426,9 +2384,9 @@ + /* out->psXObject(obj1.getStream(), + obj3.isStream() ? obj3.getStream() : (Stream *)NULL);*/ + } else if (obj2.isName()) { +- error(getPos(), const_cast("Unknown XObject subtype '%s'"), obj2.getName()); ++ error(errInternal, getPos(), const_cast("Unknown XObject subtype '%s'"), obj2.getName()); + } else { +- error(getPos(), const_cast("XObject subtype is missing or wrong type")); ++ error(errInternal, getPos(), const_cast("XObject subtype is missing or wrong type")); + } + obj2.free(); + obj1.free(); +@@ -2559,11 +2517,7 @@ + } + } + if (!obj1.isNull()) { +-#ifdef POPPLER_NEW_COLOR_SPACE_API + colorSpace = GfxColorSpace::parse(&obj1, NULL); +-#else +- colorSpace = GfxColorSpace::parse(&obj1); +-#endif + } else if (csMode == streamCSDeviceGray) { + colorSpace = new GfxDeviceGrayColorSpace(); + } else if (csMode == streamCSDeviceRGB) { +@@ -2648,11 +2602,7 @@ + obj2.free(); + } + } +-#ifdef POPPLER_NEW_COLOR_SPACE_API + maskColorSpace = GfxColorSpace::parse(&obj1, NULL); +-#else +- maskColorSpace = GfxColorSpace::parse(&obj1); +-#endif + obj1.free(); + if (!maskColorSpace || maskColorSpace->getMode() != csDeviceGray) { + goto err1; +@@ -2758,7 +2708,7 @@ + err2: + obj1.free(); + err1: +- error(getPos(), const_cast("Bad image parameters")); ++ error(errInternal, getPos(), const_cast("Bad image parameters")); + } + + void PdfParser::doForm(Object *str) { +@@ -2783,7 +2733,7 @@ + // check form type + dict->lookup(const_cast("FormType"), &obj1); + if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) { +- error(getPos(), const_cast("Unknown form type")); ++ error(errInternal, getPos(), const_cast("Unknown form type")); + } + obj1.free(); + +@@ -2791,7 +2741,7 @@ + dict->lookup(const_cast("BBox"), &bboxObj); + if (!bboxObj.isArray()) { + bboxObj.free(); +- error(getPos(), const_cast("Bad form bounding box")); ++ error(errInternal, getPos(), const_cast("Bad form bounding box")); + return; + } + for (i = 0; i < 4; ++i) { +@@ -2827,11 +2777,7 @@ + if (obj1.dictLookup(const_cast("S"), &obj2)->isName(const_cast("Transparency"))) { + transpGroup = gTrue; + if (!obj1.dictLookup(const_cast("CS"), &obj3)->isNull()) { +-#ifdef POPPLER_NEW_COLOR_SPACE_API + blendingColorSpace = GfxColorSpace::parse(&obj3, NULL); +-#else +- blendingColorSpace = GfxColorSpace::parse(&obj3); +-#endif + } + obj3.free(); + if (obj1.dictLookup(const_cast("I"), &obj3)->isBool()) { +@@ -2967,7 +2913,7 @@ + // display the image + if (str) { + doImage(NULL, str, gTrue); +- ++ + // skip 'EI' tag + c1 = str->getUndecodedStream()->getChar(); + c2 = str->getUndecodedStream()->getChar(); +@@ -2990,7 +2936,7 @@ + parser->getObj(&obj); + while (!obj.isCmd(const_cast("ID")) && !obj.isEOF()) { + if (!obj.isName()) { +- error(getPos(), const_cast("Inline image dictionary key must be a name object")); ++ error(errInternal, getPos(), const_cast("Inline image dictionary key must be a name object")); + obj.free(); + } else { + key = copyString(obj.getName()); +@@ -3005,7 +2951,7 @@ + parser->getObj(&obj); + } + if (obj.isEOF()) { +- error(getPos(), const_cast("End of file in inline image")); ++ error(errInternal, getPos(), const_cast("End of file in inline image")); + obj.free(); + dict.free(); + return NULL; +@@ -3020,11 +2966,11 @@ + } + + void PdfParser::opImageData(Object args[], int numArgs) { +- error(getPos(), const_cast("Internal: got 'ID' operator")); ++ error(errInternal, getPos(), const_cast("Internal: got 'ID' operator")); + } + + void PdfParser::opEndImage(Object args[], int numArgs) { +- error(getPos(), const_cast("Internal: got 'EI' operator")); ++ error(errInternal, getPos(), const_cast("Internal: got 'EI' operator")); + } + + //------------------------------------------------------------------------ +--- inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp 2012-05-27 01:55:07.000000000 +0200 ++++ inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp 2012-05-27 02:18:01.410549224 +0200 +@@ -1,6 +1,6 @@ + /** \file + * Native PDF import using libpoppler. +- * ++ * + * Authors: + * miklos erdelyi + * +@@ -14,7 +14,7 @@ + # include + #endif + +-#include ++#include + + #ifdef HAVE_POPPLER + +@@ -74,7 +74,7 @@ + + /** + * \class SvgBuilder +- * ++ * + */ + + SvgBuilder::SvgBuilder(SPDocument *document, gchar *docname, XRef *xref) { +@@ -398,7 +398,7 @@ + Inkscape::CSSOStringStream os_opacity; + os_opacity << state->getFillOpacity(); + sp_repr_css_set_property(css, "fill-opacity", os_opacity.str().c_str()); +- ++ + // Fill rule + sp_repr_css_set_property(css, "fill-rule", even_odd ? "evenodd" : "nonzero"); + } +@@ -414,7 +414,7 @@ + } else { + sp_repr_css_set_property(css, "fill", "none"); + } +- ++ + if (stroke) { + _setStrokeStyle(css, state); + } else { +@@ -865,7 +865,7 @@ + + /* + MatchingChars +- Count for how many characters s1 matches sp taking into account ++ Count for how many characters s1 matches sp taking into account + that a space in sp may be removed or replaced by some other tokens + specified in the code. (Bug LP #179589) + */ +@@ -898,16 +898,16 @@ + { + double bestMatch = 0; + std::string bestFontname = "Arial"; +- ++ + for (guint i = 0; i < _availableFontNames.size(); i++) { + std::string fontname = _availableFontNames[i]; +- ++ + // At least the first word of the font name should match. + guint minMatch = fontname.find(" "); + if (minMatch == std::string::npos) { + minMatch = fontname.length(); + } +- ++ + int Match = MatchingChars(PDFname, fontname); + if (Match >= minMatch) { + double relMatch = (float)Match / (fontname.length() + PDFname.length()); +@@ -961,9 +961,7 @@ + _font_style = sp_repr_css_attr_new(); + GfxFont *font = state->getFont(); + // Store original name +- if (font->getOrigName()) { +- _font_specification = font->getOrigName()->getCString(); +- } else if (font->getName()) { ++ if (font->getName()) { + _font_specification = font->getName()->getCString(); + } else { + _font_specification = (char*) "Arial"; +@@ -992,7 +990,7 @@ + // Font family + if (font->getFamily()) { // if font family is explicitly given use it. + sp_repr_css_set_property(_font_style, "font-family", font->getFamily()->getCString()); +- } else { ++ } else { + int attr_value = 1; + sp_repr_get_int(_preferences, "localFonts", &attr_value); + if (attr_value != 0) { +@@ -1250,7 +1248,7 @@ + break; + } else { + tspan_node = _xml_doc->createElement("svg:tspan"); +- ++ + /////// + // Create a font specification string and save the attribute in the style + PangoFontDescription *descr = pango_font_description_from_string(glyph.font_specification); +@@ -1734,7 +1732,7 @@ + Inkscape::GC::release(image_node); + } + } +- ++ + void SvgBuilder::addSoftMaskedImage(GfxState *state, Stream *str, int width, int height, + GfxImageColorMap *color_map, + Stream *mask_str, int mask_width, int mask_height, diff --git a/inkscape.spec b/inkscape.spec index 4ca92b2..0d05877 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -16,7 +16,7 @@ Summary: Scalable vector graphics editor Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej Name: inkscape Version: 0.48.2 -Release: 8 +Release: 9 License: GPL v2+, LGPL v2.1+ Group: X11/Applications/Graphics Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar.bz2 @@ -24,6 +24,8 @@ Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}%{beta}.tar # workaround for https://bugs.launchpad.net/inkscape/+bug/487038 Patch0: %{name}-ldl.patch Patch1: %{name}-0.48.1-libpng15.patch +Patch2: inkscape-0.48.2-glib.patch +Patch3: inkscape-poppler.patch URL: http://www.inkscape.org/ BuildRequires: ImageMagick-c++-devel BuildRequires: aspell-devel @@ -79,6 +81,8 @@ dwuwymiarowej grafiki wektorowej. %setup -q -n %{name}-%{version}%{beta} %patch0 -p1 %patch1 -p1 +%patch2 -p1 +%patch3 -p1 %{__rm} po/en_US@piglatin.po %{__sed} -i -e 's|en_US@piglatin||' configure.ac