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."
This commit is contained in:
Robert Osfield 2009-11-20 10:56:54 +00:00
parent e15006b194
commit 833e79a79a

View File

@ -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);
}