Hello,
I did research the cause for this problem indepentendly to Ingo's effort
and came to the same result. The mentioned lines in
/debian/patches/warnings are causing this bug. I have attached a debdiff
to illustrate how I modified the patch file.
Kind regards,
Jan
diff -Nru nted-1.10.18/debian/changelog nted-1.10.18/debian/changelog
--- nted-1.10.18/debian/changelog 2012-05-29 23:31:07.000000000 +0200
+++ nted-1.10.18/debian/changelog 2013-06-28 14:35:17.000000000 +0200
@@ -1,3 +1,11 @@
+nted (1.10.18-4.1) wheezy; urgency=low
+
+ * Non-maintainer upload.
+ * Remove changeset -1165,12 +1165,11 in mainwindow.cpp from
+ debian/patches/warnings. since this breaks PDF and PS export.
+
+ -- Jan Rathmann <[email protected]> Fri, 28 Jun 2013 14:33:07 +0200
+
nted (1.10.18-4) unstable; urgency=low
* Fix the patch warnings which had a bug preventing the clef to
diff -Nru nted-1.10.18/debian/patches/warnings
nted-1.10.18/debian/patches/warnings
--- nted-1.10.18/debian/patches/warnings 2012-05-29 23:13:36.000000000
+0200
+++ nted-1.10.18/debian/patches/warnings 2013-06-28 14:32:51.000000000
+0200
@@ -287,21 +287,6 @@
===================================================================
--- nted.orig/mainwindow.cpp 2012-05-29 23:12:57.000000000 +0200
+++ nted/mainwindow.cpp 2012-05-29 23:12:59.000000000 +0200
-@@ -1165,12 +1165,11 @@
-
- void NedMainWindow::draw (cairo_t *cr, int width, int height)
- {
-- cairo_scaled_font_t *scaled_font;
- bool dummy = false;
-- scaled_font = NedResource::getScaledFont(m_current_zoom_level);
-- GdkColor sel_color;
- //cairo_scale(cr, 0.4, 0.4);
- #ifdef HAS_SET_SCALED_FONT
-+ cairo_scaled_font_t *scaled_font;
-+ scaled_font = NedResource::getScaledFont(m_current_zoom_level);
- cairo_set_scaled_font (cr, scaled_font);
- #else
- cairo_set_font_face(cr, NedResource::getFontFace());
@@ -1208,8 +1207,6 @@
cairo_stroke(cr);