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:
parent
e15006b194
commit
833e79a79a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user