From d74a020e5bc1b25e8302aba6ac1bf753d9cb9ea1 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Thu, 4 Jun 2015 03:22:44 +0900 Subject: [PATCH] =?UTF-8?q?GUI=E3=81=A7=E5=88=86=E5=89=B2=E3=82=B5?= =?UTF-8?q?=E3=82=A4=E3=82=BA=E3=81=8C=E7=A9=BA=E3=81=AE=E6=99=82=E3=81=A0?= =?UTF-8?q?=E3=81=91=E3=81=8A=E3=81=99=E3=81=99=E3=82=81=E3=82=B5=E3=82=A4?= =?UTF-8?q?=E3=82=BA=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/Source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 6399df7..3e30e11 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -323,7 +323,8 @@ private: } } - SendMessage(hcrop, CB_SETCURSEL, defaultIndex, 0); + if (GetWindowTextLength(hcrop) == 0) + SendMessage(hcrop, CB_SETCURSEL, defaultIndex, 0); } void ProcessWaifu2x() @@ -689,7 +690,6 @@ public: SetWindowTextA(GetDlgItem(hWnd, IDC_EDIT_SCALE_RATIO), text); SetWindowTextA(GetDlgItem(hWnd, IDC_EDIT_OUT_EXT), outputExt.c_str()); SetWindowTextA(GetDlgItem(hWnd, IDC_EDIT_INPUT_EXT_LIST), inputFileExt.c_str()); - SetWindowTextA(GetDlgItem(hWnd, IDC_COMBO_CROP_SIZE), std::to_string(crop_size).c_str()); } void Cancel(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)