Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
855df69d
Commit
855df69d
authored
Jun 28, 2016
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only save the config if the dialog was shown.
parent
04deb9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
plugins/impex/heightmap/kis_heightmap_export.cpp
plugins/impex/heightmap/kis_heightmap_export.cpp
+2
-3
No files found.
plugins/impex/heightmap/kis_heightmap_export.cpp
View file @
855df69d
...
...
@@ -126,13 +126,12 @@ KisImportExportFilter::ConversionStatus KisHeightMapExport::convert(const QByteA
if
(
kdb
.
exec
()
==
QDialog
::
Rejected
)
{
return
KisImportExportFilter
::
UserCancelled
;
}
cfg
=
wdg
->
configuration
();
KisConfig
().
setExportConfiguration
(
"HeightMap"
,
*
cfg
.
data
());
}
cfg
=
wdg
->
configuration
();
QDataStream
::
ByteOrder
bo
=
cfg
->
getInt
(
"endianness"
,
0
)
?
QDataStream
::
BigEndian
:
QDataStream
::
LittleEndian
;
KisConfig
().
setExportConfiguration
(
"HeightMap"
,
*
cfg
.
data
());
bool
downscale
=
false
;
if
(
to
==
"image/x-r8"
&&
image
->
colorSpace
()
->
colorDepthId
()
==
Integer16BitsColorDepthID
)
{
...
...
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