[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
This commit is contained in:
Don Ho 2014-03-15 19:02:23 +00:00
parent 1302b354ad
commit 9f46e7c4c8

View File

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