From 21e9239203fe734c24111edc29012deb364fdc5a Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 15 Dec 2020 00:48:20 +0100 Subject: [PATCH] Make find in finder result's text direction follows the search results' one --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +- PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 53d03ad4..08ccdaf5 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -2477,7 +2477,7 @@ Finder * FindReplaceDlg::createFinder() pFinder->init(_hInst, (*_ppEditView)->getHParent(), _ppEditView); tTbData data = { 0 }; - bool isRTL = (*_ppEditView)->isTextDirectionRTL(); + bool isRTL = _pFinder->_scintView.isTextDirectionRTL(); pFinder->create(&data, isRTL); ::SendMessage(_hParent, NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast(pFinder->getHSelf())); // define the default docking behaviour diff --git a/PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp b/PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp index 4e3ce516..d46a5e57 100644 --- a/PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp +++ b/PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp @@ -1060,7 +1060,7 @@ void FileBrowser::addRootFolder(generic_string rootFolderPath) NppParameters::getInstance().getNativeLangSpeaker()->messageBox("FolderAsWorspaceSubfolderExists", _hParent, TEXT("A sub-folder of the folder you want to add exists.\rPlease remove its root from the panel before you add folder \"$STR_REPLACE$\"."), - TEXT("Folder as WorKspace adding folder problem"), + TEXT("Folder as Workspace adding folder problem"), MB_OK, 0, // not used rootFolderPath.c_str());