[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/ksvg/plugin/backends/libart
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2003-08-28 12:25:33
[Download RAW message or body]

CVS commit by buis: 

Fix crash with text-text-BE-01.svg. Now there is a zooming problem though...


  M +3 -3      LibartCanvasItems.cpp   1.21


--- kdenonbeta/ksvg/plugin/backends/libart/LibartCanvasItems.cpp  #1.20:1.21
@@ -1437,5 +1437,5 @@ QRect LibartText::bbox() const
         {
                 ArtIRect *irect = new ArtIRect();
-                ArtVpath *vpath = art_vpath_from_svp(stroke->svp ? stroke->svp : \
fill->svp); +                ArtVpath *vpath = art_vpath_from_svp((stroke && \
stroke->svp) ? stroke->svp : fill->svp);  art_vpath_bbox_irect(vpath, irect);
                 art_free(vpath);
@@ -1522,6 +1522,6 @@ void LibartText::draw()
                         return;
 
-                bool fillOk = fill->svp && text->isFilled();
-                bool strokeOk = stroke->svp && text->isStroked() && \
text->getStrokeWidth()->baseVal()->value() > 0; // Spec: A zero value causes no \
stroke to be painted. +                bool fillOk = fill && fill->svp && \
text->isFilled(); +                bool strokeOk = stroke && stroke->svp && \
text->isStroked() && text->getStrokeWidth()->baseVal()->value() > 0; // Spec: A zero \
value causes no stroke to be painted.  
                 if(fillOk || strokeOk)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic