[dia] Bug 430674 - PNG export omits all text
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Bug 430674 - PNG export omits all text
- Date: Sun, 10 Jul 2011 22:37:12 +0000 (UTC)
commit 7ac06b8b7b9e831fb83ae01f395ab8b652ffa04a
Author: Hans Breuer <hans breuer org>
Date: Mon Jul 11 00:29:57 2011 +0200
Bug 430674 - PNG export omits all text
No more Gdk-WARNING **: No colormap in gc_get_foreground
by simply setting the system colormap in the gc.
plug-ins/libart/dialibartrenderer.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/libart/dialibartrenderer.c b/plug-ins/libart/dialibartrenderer.c
index b96c3b5..2de0d63 100644
--- a/plug-ins/libart/dialibartrenderer.c
+++ b/plug-ins/libart/dialibartrenderer.c
@@ -1178,6 +1178,7 @@ draw_text_line(DiaRenderer *self, TextLine *text_line,
rowstride = 32*((width+31)/31);
#if 1 /* with 8 bit pixmap we would probably need to set the whole gray palette */
+ gdk_gc_set_colormap (gc, gdk_colormap_get_system ());
gdk_gc_set_foreground (gc, &color_gdk_black);
gdk_gc_set_background (gc, &color_gdk_white);
gdk_draw_rectangle (GDK_DRAWABLE (pixmap), gc, TRUE, 0, 0, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]