Skip to content

Commit

Permalink
Fix a logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Nov 20, 2023
1 parent 0599e43 commit afffc4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
if (hNtdllModule)
isWINE = ::GetProcAddress(hNtdllModule, "wine_get_version");

if (!isWINE && // There is a performance issue under WINE when DirectWright is ON, so we turn it off if user uses Notepad++ under WINE
!isTextDirectionRTL()) // RTL is not compatible with Direct Write Technology
if (isWINE || // There is a performance issue under WINE when DirectWright is ON, so we turn it off if user uses Notepad++ under WINE
isTextDirectionRTL()) // RTL is not compatible with Direct Write Technology
nppGui._writeTechnologyEngine = defaultTechnology;

if (nppGui._writeTechnologyEngine == directWriteTechnology)
Expand Down

0 comments on commit afffc4c

Please sign in to comment.