[aseprite] 05/308: Don't show symmetry line if Editor::kShowSymmetryLine flag isn't present (fix #851)
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:44:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit aa28f6d65c4febbd66fb8334f8cefd46d8cee65b
Author: David Capello <davidcapello at gmail.com>
Date: Mon Nov 16 10:06:28 2015 -0300
Don't show symmetry line if Editor::kShowSymmetryLine flag isn't present (fix #851)
---
src/app/ui/editor/editor.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp
index e20b022..534214f 100644
--- a/src/app/ui/editor/editor.cpp
+++ b/src/app/ui/editor/editor.cpp
@@ -633,7 +633,9 @@ void Editor::drawSpriteUnclippedRect(ui::Graphics* g, const gfx::Rect& _rc)
}
// Symmetry mode
- if (Preferences::instance().symmetryMode.enabled()) {
+ if (isActive() &&
+ (m_flags & Editor::kShowSymmetryLine) &&
+ Preferences::instance().symmetryMode.enabled()) {
switch (docPref.symmetry.mode()) {
case app::gen::SymmetryMode::NONE:
// Do nothing
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list