Skip to content

Commit

Permalink
Limit font size to 999
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Oct 16, 2015
1 parent 049111b commit fcf3d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/commands/cmd_paste_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fcf3d77

Please sign in to comment.