Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Petrovic
Krita
Commits
0c5a02e9
Commit
0c5a02e9
authored
Jan 12, 2021
by
Dmitry Kazakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly make visibility change non-undoable
parent
21f7c023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
libs/image/commands/kis_node_property_list_command.cpp
libs/image/commands/kis_node_property_list_command.cpp
+3
-6
No files found.
libs/image/commands/kis_node_property_list_command.cpp
View file @
0c5a02e9
...
...
@@ -215,10 +215,9 @@ void KisNodePropertyListCommand::setNodePropertiesAutoUndo(KisNodeSP node, KisIm
*/
struct
SimpleLodResettingStroke
:
public
KisSimpleStrokeStrategy
{
SimpleLodResettingStroke
(
KUndo2Command
*
cmd
,
KisImageSP
image
)
SimpleLodResettingStroke
(
KUndo2Command
*
cmd
)
:
KisSimpleStrokeStrategy
(
QLatin1String
(
"SimpleLodResettingStroke"
)),
m_cmd
(
cmd
),
m_image
(
image
)
m_cmd
(
cmd
)
{
setClearsRedoOnStart
(
false
);
this
->
enableJob
(
JOB_INIT
,
true
);
...
...
@@ -226,15 +225,13 @@ void KisNodePropertyListCommand::setNodePropertiesAutoUndo(KisNodeSP node, KisIm
void
initStrokeCallback
()
override
{
m_cmd
->
redo
();
m_image
->
setModifiedWithoutUndo
();
}
private:
QScopedPointer
<
KUndo2Command
>
m_cmd
;
KisImageSP
m_image
;
};
KisStrokeId
strokeId
=
image
->
startStroke
(
new
SimpleLodResettingStroke
(
cmd
.
take
()
,
image
));
KisStrokeId
strokeId
=
image
->
startStroke
(
new
SimpleLodResettingStroke
(
cmd
.
take
()));
image
->
endStroke
(
strokeId
);
}
...
...
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