summaryrefslogtreecommitdiffstats
path: root/scintilla/src
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2011-12-04 09:38:02 +0000
committerXhmikosR <xhmikosr@users.sourceforge.net>2011-12-04 09:38:02 +0000
commita910687cddeba090b62e82a597467a2f94523511 (patch)
tree356783515db4ee287c08815e953bda143607d9e0 /scintilla/src
parent52bc1d4bd3fc273e2bb213d4976a5d53b3788f9e (diff)
downloadnotepad2-mod-a910687cddeba090b62e82a597467a2f94523511.zip
notepad2-mod-a910687cddeba090b62e82a597467a2f94523511.tar.gz
notepad2-mod-a910687cddeba090b62e82a597467a2f94523511.tar.bz2
update Scintilla
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@652 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/src')
-rw-r--r--scintilla/src/Editor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scintilla/src/Editor.cxx b/scintilla/src/Editor.cxx
index 3962b4c..9c87ff4 100644
--- a/scintilla/src/Editor.cxx
+++ b/scintilla/src/Editor.cxx
@@ -1807,9 +1807,9 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) {
// be displayed until the last of a sequence of whitespace.
bool needWhiteClosure = false;
if (vs.ms[margin].mask & SC_MASK_FOLDERS) {
- int level = pdoc->GetLevel(cs.DocFromDisplay(topLine));
+ int level = pdoc->GetLevel(cs.DocFromDisplay(visibleLine));
if (level & SC_FOLDLEVELWHITEFLAG) {
- int lineBack = cs.DocFromDisplay(topLine);
+ int lineBack = cs.DocFromDisplay(visibleLine);
int levelPrev = level;
while ((lineBack > 0) && (levelPrev & SC_FOLDLEVELWHITEFLAG)) {
lineBack--;
@@ -2017,7 +2017,7 @@ void Editor::PaintSelMargin(Surface *surfWindow, PRectangle &rc) {
surface->FillRectangle(rcBlankMargin, vs.styles[STYLE_DEFAULT].back);
if (bufferedDraw) {
- surfWindow->Copy(rcMargin, Point(), *pixmapSelMargin);
+ surfWindow->Copy(rcMargin, Point(rcMargin.left, rcMargin.top), *pixmapSelMargin);
}
}