summaryrefslogtreecommitdiffstats
path: root/src/display/cairo-utils.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2013-09-19 13:23:02 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2013-09-19 13:23:02 +0000
commit0191af5c169ac3e3086873f6edbe33dd17800773 (patch)
tree0f43bcc2e4541455f4fbbf142cf110e7e8a5538c /src/display/cairo-utils.cpp
parentRevert some agressive changes and allow a seperate filter bbox for FER, shoul... (diff)
downloadinkscape-0191af5c169ac3e3086873f6edbe33dd17800773.tar.gz
inkscape-0191af5c169ac3e3086873f6edbe33dd17800773.zip
Fix type mismatch for platforms where gsize is not unsigned long
(bzr r12537)
Diffstat (limited to 'src/display/cairo-utils.cpp')
-rw-r--r--src/display/cairo-utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/cairo-utils.cpp b/src/display/cairo-utils.cpp
index 2c7b543c1..451f0b509 100644
--- a/src/display/cairo-utils.cpp
+++ b/src/display/cairo-utils.cpp
@@ -399,9 +399,9 @@ guchar const *Pixbuf::getMimeData(gsize &len, std::string &mimetype) const
for (guint i = 0; i < mimetypes_len; ++i) {
unsigned long len_long = 0;
- cairo_surface_get_mime_data(const_cast<cairo_surface_t*>(_surface), mimetypes[i], &data, &len);
- len = len_long; // this assumes that the added range of long is not needed. the code below assumes gsize range of values is sufficient.
+ cairo_surface_get_mime_data(const_cast<cairo_surface_t*>(_surface), mimetypes[i], &data, &len_long);
if (data != NULL) {
+ len = len_long;
mimetype = mimetypes[i];
break;
}