From 833e79a79a7ec075108672180d391835e13140cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 20 Nov 2009 10:56:54 +0000 Subject: [PATCH] From Jeremy Moles, "Somehow, the SVG reader plugin has gone all this time without actually being able to accurately provide the cool stuff that SVG is good for. :) There is a one-line bug on line 68 in the src/osgPlugins/svg/ReaderWriterSVG.cpp file where you can set the width in the Options string, but not the height." --- src/osgPlugins/svg/ReaderWriterSVG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/svg/ReaderWriterSVG.cpp b/src/osgPlugins/svg/ReaderWriterSVG.cpp index 80995b760..4ea697900 100644 --- a/src/osgPlugins/svg/ReaderWriterSVG.cpp +++ b/src/osgPlugins/svg/ReaderWriterSVG.cpp @@ -65,7 +65,7 @@ class ReaderWriterSVG : public osgDB::ReaderWriter std::stringstream ss1(op.substr(0, i)); std::stringstream ss2(op.substr(i+1, op.size())); ss1 >> w; - ss1 >> h; + ss2 >> h; if (w==0 || h==0){ image = createImage(handle, dimensionData.width, dimensionData.height); }