gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp


From: Udo Giacomozzi
Subject: [Gnash-commit] gnash ChangeLog backend/render_handler_agg.cpp
Date: Mon, 05 May 2008 18:12:32 +0000

CVSROOT:        /cvsroot/gnash
Module name:    gnash
Changes by:     Udo Giacomozzi <udog>   08/05/05 18:12:32

Modified files:
        .              : ChangeLog 
        backend        : render_handler_agg.cpp 

Log message:
        * backend/render_handler_agg.cpp: Don't try to access line style
          for paths that have none  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6508&r2=1.6509
http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.141&r2=1.142

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnash/gnash/ChangeLog,v
retrieving revision 1.6508
retrieving revision 1.6509
diff -u -b -r1.6508 -r1.6509
--- ChangeLog   5 May 2008 17:14:50 -0000       1.6508
+++ ChangeLog   5 May 2008 18:12:31 -0000       1.6509
@@ -1,3 +1,8 @@
+2008-05-05 Udo Giacomozzi <address@hidden>
+
+       * backend/render_handler_agg.cpp: Don't try to access line style
+         for paths that have none      
+
 2008-05-05 Sandro Santilli <address@hidden>
 
        * server/as_function.cpp (constructInstance): catch exception

Index: backend/render_handler_agg.cpp
===================================================================
RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -b -r1.141 -r1.142
--- backend/render_handler_agg.cpp      5 May 2008 08:47:42 -0000       1.141
+++ backend/render_handler_agg.cpp      5 May 2008 18:12:31 -0000       1.142
@@ -1177,10 +1177,14 @@
       const Path<float>& this_path = paths[pno];
       agg::path_storage& new_path = dest[pno];
       
+      bool hinting=false, closed=false;
+      
+      if (this_path.m_line) {
       const line_style& lstyle = line_styles[this_path.m_line-1];
       
-      const bool hinting = lstyle.doPixelHinting();
-      bool closed = this_path.isClosed() && !lstyle.noClose();
+        hinting = lstyle.doPixelHinting();
+        closed = this_path.isClosed() && !lstyle.noClose();
+      }
       
       float prev_ax = this_path.ap.x;
       float prev_ay = this_path.ap.y;  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]