[aseprite] 225/250: Fix crash calling selectTabInternal() with tab=nullptr
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 2123ecb51121494b602969f86dc187b01ad50575
Author: David Capello <davidcapello at gmail.com>
Date: Tue Nov 3 16:12:13 2015 -0300
Fix crash calling selectTabInternal() with tab=nullptr
---
src/app/ui/tabs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/ui/tabs.cpp b/src/app/ui/tabs.cpp
index 284cf56..b00e52e 100644
--- a/src/app/ui/tabs.cpp
+++ b/src/app/ui/tabs.cpp
@@ -556,7 +556,7 @@ void Tabs::selectTabInternal(TabPtr& tab)
invalidate();
}
- if (m_delegate)
+ if (m_delegate && tab)
m_delegate->onSelectTab(this, tab->view);
}
--
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