diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-11-03 21:15:51 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-11-07 21:27:57 +0000 |
| commit | 81835789f6823079ad1264f4addb26f681c5bd7d (patch) | |
| tree | 43f424eda84722acb1c76c8fc68a4e71bbe8dd1b /src/util/ziptool.cpp | |
| parent | fix clipboard URL rebasing (diff) | |
| download | inkscape-81835789f6823079ad1264f4addb26f681c5bd7d.tar.gz inkscape-81835789f6823079ad1264f4addb26f681c5bd7d.zip | |
fix bug 1793940 ODG image export
Fixes handling of relative image URIs and data URIs for OpenDocument
drawing (*.odg) export.
Diffstat (limited to 'src/util/ziptool.cpp')
| -rw-r--r-- | src/util/ziptool.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/ziptool.cpp b/src/util/ziptool.cpp index fc13b836f..a4ad751a0 100644 --- a/src/util/ziptool.cpp +++ b/src/util/ziptool.cpp @@ -2019,6 +2019,13 @@ void ZipEntry::setUncompressedData(const std::vector<unsigned char> &val) uncompressedData = val; } +void ZipEntry::setUncompressedData(const std::string &s) +{ + uncompressedData.clear(); + uncompressedData.reserve(s.size()); + uncompressedData.insert(uncompressedData.begin(), s.begin(), s.end()); +} + /** * */ |
