From c54d5cd5ccbd90a0b8ab3e00591feda09a008944 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 4 Feb 2011 13:55:34 +0000 Subject: [PATCH] .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 --- uppsrc/CtrlCore/init | 2 +- uppsrc/CtrlLib/DocEdit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/CtrlCore/init b/uppsrc/CtrlCore/init index 81d292e73..82fee9f53 100644 --- a/uppsrc/CtrlCore/init +++ b/uppsrc/CtrlCore/init @@ -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 diff --git a/uppsrc/CtrlLib/DocEdit.cpp b/uppsrc/CtrlLib/DocEdit.cpp index 259dbe5f6..bb94596fc 100644 --- a/uppsrc/CtrlLib/DocEdit.cpp +++ b/uppsrc/CtrlLib/DocEdit.cpp @@ -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; }