Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
4ff68539
Commit
4ff68539
authored
Aug 14, 2018
by
Dmitry Kazakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more warnings on Jenkins
parent
7d0f3471
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
libs/ui/kis_png_converter.cpp
libs/ui/kis_png_converter.cpp
+5
-2
libs/ui/kisexiv2/kis_exiv2.cpp
libs/ui/kisexiv2/kis_exiv2.cpp
+1
-1
No files found.
libs/ui/kis_png_converter.cpp
View file @
4ff68539
...
...
@@ -1080,10 +1080,13 @@ KisImageBuilder_Result KisPNGConverter::buildFile(QIODevice* iodevice, const QRe
const
KoColorProfile
*
colorProfile
=
device
->
colorSpace
()
->
profile
();
QByteArray
colorProfileData
=
colorProfile
->
rawData
();
if
(
!
sRGB
||
options
.
saveSRGBProfile
)
{
#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 5
png_set_iCCP
(
png_ptr
,
info_ptr
,
(
char
*
)
"icc"
,
PNG_COMPRESSION_TYPE_BASE
,
(
const
png_bytep
)
colorProfileData
.
constData
(),
colorProfileData
.
size
());
png_set_iCCP
(
png_ptr
,
info_ptr
,
"icc"
,
PNG_COMPRESSION_TYPE_BASE
,
colorProfileData
.
constData
(),
colorProfileData
.
size
());
#else
png_set_iCCP
(
png_ptr
,
info_ptr
,
(
char
*
)
"icc"
,
PNG_COMPRESSION_TYPE_BASE
,
(
char
*
)
colorProfileData
.
constData
(),
colorProfileData
.
size
());
// older version of libpng has a problem with constness on the parameters
char
typeString
[]
=
"icc"
;
png_set_iCCP
(
png_ptr
,
info_ptr
,
typeString
,
PNG_COMPRESSION_TYPE_BASE
,
colorProfileData
.
data
(),
colorProfileData
.
size
());
#endif
}
...
...
libs/ui/kisexiv2/kis_exiv2.cpp
View file @
4ff68539
...
...
@@ -195,7 +195,7 @@ Exiv2::Value* kmdValueToExivValue(const KisMetaData::Value& value, Exiv2::TypeId
KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE
(
0
&&
"Unknown alternative array type"
,
0
);
break
;
}
/* Falls through */
break
;
}
default:
dbgMetaData
<<
type
<<
" "
<<
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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