.CtrlLib: Added some parenthesis to DocEdit if to make it clear

git-svn-id: svn://ultimatepp.org/upp/trunk@3159 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-02-04 13:55:34 +00:00
parent 19e408be2d
commit c54d5cd5cc
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
#include "Draw/init"
#include "plugin\bmp/init"
#include "RichText/init"
#define BLITZ_INDEX__ FC7D3155EBFD63D91990D6369B831171A
#define BLITZ_INDEX__ F3BBFAB3909DFB32184956956979C20C6
#include "CtrlCore.icpp"
#undef BLITZ_INDEX__
#endif

View file

@ -322,7 +322,7 @@ void DocEdit::VertMove(int delta, bool select, bool scs) {
if(p.y > hy) p.y = hy - 1;
if(p.y < 0) p.y = 0;
int q = GetCursorPos(p);
if(q >= 0 && q != cursor && delta < 0 == q < cursor && GetCaret(q).y != yy) {
if(q >= 0 && q != cursor && (delta < 0) == (q < cursor) && GetCaret(q).y != yy) {
PlaceCaret(q, select);
break;
}