From 903fd8ea9ea6163d58d7ce3f2ea89d51d126bf7e Mon Sep 17 00:00:00 2001 From: lsv Date: Wed, 4 Mar 2026 16:02:27 +0500 Subject: [PATCH] fix --- include/utils/popuphelp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/popuphelp.h b/include/utils/popuphelp.h index 956458a..0a7517b 100644 --- a/include/utils/popuphelp.h +++ b/include/utils/popuphelp.h @@ -193,9 +193,9 @@ public: if (event.GetKeyCode() == WXK_HOME) htmlWindow->ScrollPages(-1000); if (event.GetKeyCode() == WXK_END) htmlWindow->ScrollPages(1000); //std::cout << "key code " << event.GetKeyCode() << " " << std::endl; - if (event.GetKeyCode() == 'C') { + if (event.GetKeyCode() == 'C' && hist.size()>0) { - if (hist.size()>0 && wxTheClipboard->Open()) + if (wxTheClipboard->Open()) { wxString h=hist[hist.size()-1]; // Добавляем данные (можно добавить несколько форматов, если нужно)