[aseprite] 214/308: Remove invalid ASSERT in AppBrushes::save()
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:12 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 d244af8fc174d465a9c10854554915971915395f
Author: David Capello <davidcapello at gmail.com>
Date: Sun Feb 7 15:02:16 2016 -0300
Remove invalid ASSERT in AppBrushes::save()
---
src/app/app_brushes.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/app/app_brushes.cpp b/src/app/app_brushes.cpp
index 7fea3e4..3dc13db 100644
--- a/src/app/app_brushes.cpp
+++ b/src/app/app_brushes.cpp
@@ -1,5 +1,5 @@
// Aseprite
-// Copyright (C) 2001-2015 David Capello
+// Copyright (C) 2001-2016 David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -395,7 +395,8 @@ void AppBrushes::save(const std::string& filename) const
// Flags
int flags = int(slot.flags());
- ASSERT(slot.brush());
+ // This slot might not have a brush. (E.g. a slot that changes
+ // the pixel perfect mode only.)
if (!slot.hasBrush())
flags &= ~kBrushFlags;
--
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