diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-04-14 20:38:32 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-04-14 20:38:32 +0000 |
| commit | 677385b07c489ace6b7057a95a3260a341edfdff (patch) | |
| tree | a224967828a0ee4951cc6b52fa648d591511f54b /src/xml/repr-css.cpp | |
| parent | extensions. color_blackandwhite. add option for color threshold (Bug 1306420) (diff) | |
| download | inkscape-677385b07c489ace6b7057a95a3260a341edfdff.tar.gz inkscape-677385b07c489ace6b7057a95a3260a341edfdff.zip | |
patch by Gellule, fixes wrong parsing of style, work-around for bug in libc++
Fixed bugs:
- https://launchpad.net/bugs/1300271
(bzr r13285)
Diffstat (limited to 'src/xml/repr-css.cpp')
| -rw-r--r-- | src/xml/repr-css.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp index 24e2db9e1..32a1e7f5d 100644 --- a/src/xml/repr-css.cpp +++ b/src/xml/repr-css.cpp @@ -382,7 +382,10 @@ static void sp_repr_css_merge_from_decl(SPCSSAttr *css, CRDeclaration const *con std::string characters; std::string temp; bool number_valid = !(ss >> number).fail(); - if( !number_valid ) ss.clear(); + if (!number_valid) { + ss.clear(); + ss.seekg(0); // work-around for a bug in libc++ (see lp:1300271) + } while( !(ss >> temp).eof() ) { characters += temp; characters += " "; |
