[poppler] poppler/glib: poppler-page.cc,1.39,1.40

Kristian Høgsberg krh at freedesktop.org
Sat Dec 3 18:24:28 PST 2005


Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv30665/glib

Modified Files:
	poppler-page.cc 
Log Message:
2005-12-03  Kristian Høgsberg  <krh at redhat.com>

        * glib/poppler-page.cc (poppler_page_set_selection_alpha): Use
        Nickolays original fix instead of trying to be clever with
        gdk_pixbuf_fill().

        * poppler/CairoFontEngine.cc: Fix text corruption bug (#5149),
        a rerun of an old classic (#3340).



Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- poppler-page.cc	3 Dec 2005 21:55:36 -0000	1.39
+++ poppler-page.cc	4 Dec 2005 02:24:26 -0000	1.40
@@ -404,7 +404,13 @@
   if (pixbuf_n_channels != 4)
     return;
 
-  gdk_pixbuf_fill(pixbuf, 0);
+  for (y = 0; y < height; y++) {
+      dst = pixbuf_data + y * pixbuf_rowstride;
+      for (x = 0; x < width; x++) {
+	  dst[3] = 0x00;
+	  dst += pixbuf_n_channels;
+      }
+  }
 
   region = poppler_page_get_selection_region (page, scale, selection);
 



More information about the poppler mailing list