Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
495a6155
Commit
495a6155
authored
Nov 23, 2017
by
IOhannes m zmölnig
Browse files
quote filenames
parent
9dbb68fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/imageTIFF/imageTIFF.cpp
View file @
495a6155
...
...
@@ -189,7 +189,7 @@ bool imageTIFF :: load(std::string filename, imageStruct&result, gem::Properties
uint32
*
raster
=
reinterpret_cast
<
uint32
*>
(
_TIFFmalloc
(
npixels
*
sizeof
(
uint32
)));
if
(
raster
==
NULL
)
{
error
(
"[GEM:imageTIFF] Unable to allocate memory for image
:
%s"
,
filename
.
c_str
());
error
(
"[GEM:imageTIFF] Unable to allocate memory for image
'
%s
'
"
,
filename
.
c_str
());
TIFFClose
(
tif
);
return
(
false
);
}
...
...
@@ -321,7 +321,7 @@ bool imageTIFF::save(const imageStruct&constimage, const std::string&filename, c
unsigned
char
*
buf
=
srcLine
;
if
(
TIFFWriteScanline
(
tif
,
buf
,
row
,
0
)
<
0
)
{
verbose
(
0
,
"[GEM:imageTIFF] could not write line %d to image %s"
,
row
,
filename
.
c_str
());
verbose
(
0
,
"[GEM:imageTIFF] could not write line %d to image
'
%s
'
"
,
row
,
filename
.
c_str
());
TIFFClose
(
tif
);
delete
[]
buf
;
return
(
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment