← Back to team overview

hannibal-team team mailing list archive

[Merge] lp:~helh-saintman/hannibal/devel into lp:hannibal

 

Oleg Kulik has proposed merging lp:~helh-saintman/hannibal/devel into lp:hannibal.

Requested reviews:
  Hannibal Team (hannibal-team)


Fixed bug in pdf rendering under Ubuntu 10.10: now document can be opened without that error.
-- 
https://code.launchpad.net/~helh-saintman/hannibal/devel/+merge/39577
Your team Hannibal Team is requested to review the proposed merge of lp:~helh-saintman/hannibal/devel into lp:hannibal.
=== modified file 'view.py'
--- view.py	2010-10-15 20:28:26 +0000
+++ view.py	2010-10-28 21:03:47 +0000
@@ -291,8 +291,8 @@
                                 height=self.height)
         # Render PDF page to pixbuf
         try:
-            self.current_page.render_to_pixbuf(src_x=0, src_y=0, src_width=-1,
-                                src_height=-1, scale=self.scale,
+            self.current_page.render_to_pixbuf(src_x=0, src_y=0, src_width=self.width,
+                                src_height=self.height, scale=self.scale,
                                 rotation=0, pixbuf=self.buf)
         except:
             pass