head 1.2; access; symbols pkgsrc-2014Q2:1.1.0.14 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.12 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.10 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.8 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.6 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.4 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.2 pkgsrc-2012Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2014.07.29.07.03.27; author adam; state dead; branches; next 1.1; commitid AhB1pIUYhFmK2fKx; 1.1 date 2012.11.16.00.54.05; author joerg; state Exp; branches; next ; desc @@ 1.2 log @Changes 0.48.5: Adobe Illustrator SVG files containing entities can be loaded again Support for Poppler 0.26 Support for Boehm-GC 7.4.0 and later Several crash bugs were fixed 64-bit compilation is now possible on Windows @ text @$NetBSD: patch-src_ui_dialog_inkscape-preferences.cpp,v 1.1 2012/11/16 00:54:05 joerg Exp $ --- src/ui/dialog/inkscape-preferences.cpp.orig 2012-11-15 16:58:17.000000000 +0000 +++ src/ui/dialog/inkscape-preferences.cpp @@@@ -1236,7 +1236,7 @@@@ void InkscapePreferences::initPageBitmap gchar** splits = g_strsplit(choices.data(), ",", 0); gint numIems = g_strv_length(splits); - Glib::ustring labels[numIems]; + Glib::ustring *labels = new Glib::ustring[numIems]; int values[numIems]; for ( gint i = 0; i < numIems; i++) { values[i] = i; @@@@ -1246,6 +1246,7 @@@@ void InkscapePreferences::initPageBitmap _page_bitmaps.add_line( false, _("Bitmap editor:"), _misc_bitmap_editor, "", "", false); g_strfreev(splits); + delete[] labels; } _bitmap_copy_res.init("/options/createbitmap/resolution", 1.0, 6000.0, 1.0, 1.0, PX_PER_IN, true, false); @ 1.1 log @Fix template look up. Don't use variable length arrays of non-POD types. Don't pass non-POD types to variadic functions. @ text @d1 1 a1 1 $NetBSD$ @