[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/khtml-svg/svg
From: Rob Buis <buis () kde ! org>
Date: 2006-04-01 20:31:16
Message-ID: 1143923476.585120.14778.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 525378 by buis:
Fix for structure-symbol-BE-05.svg.
M +3 -3 SVGUseElementImpl.cpp
--- branches/work/khtml-svg/svg/SVGUseElementImpl.cpp #525377:525378
@@ -141,8 +141,8 @@
dummy->setAttribute(ATTR_HEIGHT, hString);
SVGSymbolElementImpl *symbol = static_cast<SVGSymbolElementImpl *>(target);
- if (symbol->getAttribute(SVGATTR_VIEWBOX).isEmpty()) {
- DOM::DOMString symbolViewBox = symbol->getAttribute(SVGATTR_VIEWBOX);
+ DOM::DOMString symbolViewBox = symbol->getAttribute(SVGATTR_VIEWBOX);
+ if (!symbolViewBox.isEmpty()) {
dummy->setAttribute(SVGATTR_VIEWBOX, symbolViewBox);
}
target->cloneChildNodes(dummy);
@@ -157,7 +157,7 @@
dummy->setAttribute(SVGATTR_TRANSFORM, trans);
SVGElementImpl *root = static_cast<SVGElementImpl *>(target->cloneNode(true));
- if(getAttribute(ATTR_WIDTH).isEmpty())
+ if(!getAttribute(ATTR_WIDTH).isEmpty())
root->setAttribute(ATTR_WIDTH, wString);
if(!getAttribute(ATTR_HEIGHT).isEmpty())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic