Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
4956d538
Commit
4956d538
authored
Nov 24, 2015
by
Sylvain Thery
Browse files
bug texture qt loading
parent
331456cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
CGoGN/include/Utils/textures.hpp
View file @
4956d538
...
...
@@ -353,7 +353,7 @@ bool Image<DIM,TYPE>::load(const std::string& filename)
QImage
*
ptr
=
new
QImage
(
filename
.
c_str
());
if
(
ptr
==
NULL
)
if
(
ptr
->
isNull
()
)
{
CGoGNout
<<
"Impossible to load "
<<
filename
<<
CGoGNendl
;
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