Reviewed by Adam.
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jun 2007 05:45:08 +0000 (05:45 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jun 2007 05:45:08 +0000 (05:45 +0000)
        Fix build bot.

        * ksvg2/svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::setCurrentScale):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21930 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/ksvg2/svg/SVGSVGElement.cpp

index c62cf38..d6d270b 100644 (file)
@@ -1,5 +1,14 @@
 2007-05-31  Sam Weinig  <sam@webkit.org>
 
+        Reviewed by Adam.
+
+        Fix build bot.
+
+        * ksvg2/svg/SVGSVGElement.cpp:
+        (WebCore::SVGSVGElement::setCurrentScale):
+
+2007-05-31  Sam Weinig  <sam@webkit.org>
+
         Fix Qt and Gdk builds.
 
         * WebCore.pro: remove bindings/js/JSHTMLAnchorElementCustom.cpp
index be505fa..5cb7bfc 100644 (file)
@@ -166,7 +166,7 @@ float SVGSVGElement::currentScale() const
 void SVGSVGElement::setCurrentScale(float scale)
 {
     if (document() && document()->frame())
-        document()->frame()->setZoomFactor(scale / 100.0f);
+        document()->frame()->setZoomFactor(static_cast<int>(scale / 100.0f));
 }
 
 FloatPoint SVGSVGElement::currentTranslate() const