[aseprite] 190/250: Limit font size to 999

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:29 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 fcf3d77be9f02cae2e5a7c1fe7d542ab93f58458
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Oct 16 17:45:24 2015 -0300

    Limit font size to 999
---
 src/app/commands/cmd_paste_text.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/commands/cmd_paste_text.cpp b/src/app/commands/cmd_paste_text.cpp
index 2f51569..6c1c608 100644
--- a/src/app/commands/cmd_paste_text.cpp
+++ b/src/app/commands/cmd_paste_text.cpp
@@ -148,6 +148,7 @@ void PasteTextCommand::onExecute(Context* ctx)
 
   std::string faceName = window.faceValue();
   int size = window.sizeValue();
+  size = MID(1, size, 999);
   pref.textTool.fontFace(faceName);
   pref.textTool.fontSize(size);
 

-- 
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