fixed rotation bug

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@143 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-22 13:52:20 +00:00
parent 20f5c127f8
commit 5a8febd82a
7 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -402,8 +402,8 @@ void TextValueEditor::showCaret() {
cursor = rot.tr(cursor);
// set size
wxSize size = cursor.size();
size.SetWidth (max(1, size.GetWidth()));
size.SetHeight(max(1, size.GetHeight()));
if (size.GetWidth() == 0) size.SetWidth (1);
if (size.GetHeight() == 0) size.SetHeight(1);
// resize, move, show
if (size != caret->GetSize()) {
caret->SetSize(size);