Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Skanlite
Commits
9e9f49f8
Commit
9e9f49f8
authored
Aug 17, 2021
by
Alexander Stippich
Browse files
fix image saving when preview is not shown
by always saving the data to the image.
BUG: 440970
parent
0ceec0a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/skanlite.cpp
View file @
9e9f49f8
...
...
@@ -351,16 +351,15 @@ void Skanlite::showSettingsDialog(void)
void
Skanlite
::
imageReady
(
const
QImage
&
image
)
{
// save the image data
m_img
=
image
;
if
(
m_settingsUi
.
showB4Save
->
isChecked
()
==
true
)
{
/* copy the image data into m_img and show it*/
m_img
=
image
;
// show the image in the preview
m_showImgDialog
->
setQImage
(
&
m_img
);
m_showImgDialog
->
zoom2Fit
();
m_showImgDialog
->
exec
();
// save has been done as a result of save or then we got cancel
}
else
{
m_img
=
QImage
();
// clear the image to ensure we save the correct one.
saveImage
();
}
}
...
...
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