[BUG_FIXED] Fix RTL/LTR command making mirrored text bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1201 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 11 years ago
parent 1302b354ad
commit 9f46e7c4c8

@ -2372,7 +2372,8 @@ void Notepad_plus::command(int id)
long exStyle = ::GetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE);
exStyle = (id == IDM_EDIT_RTL)?exStyle|WS_EX_LAYOUTRTL:exStyle&(~WS_EX_LAYOUTRTL);
::SetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE, exStyle);
_pEditView->redraw();
BufferID buf = _pEditView->getCurrentBufferID();
doReload(buf, buf->isDirty());
}
break;

Loading…
Cancel
Save