Browse Source

Fixed SD2-399: Hide bookmarks inside folded regions

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@356 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
db1f34bfd9
  1. 5
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/IconBarMargin.cs

5
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/IconBarMargin.cs

@ -53,7 +53,10 @@ namespace ICSharpCode.TextEditor @@ -53,7 +53,10 @@ namespace ICSharpCode.TextEditor
int lineNumber = textArea.Document.GetVisibleLine(mark.LineNumber);
int yPos = (int)(lineNumber * textArea.TextView.FontHeight) - textArea.VirtualTop.Y;
if (yPos >= rect.Y && yPos <= rect.Bottom) {
//DrawBookmark(g, yPos, mark.IsEnabled);
if (lineNumber == textArea.Document.GetVisibleLine(mark.LineNumber - 1)) {
// marker is inside folded region, do not draw it
continue;
}
mark.Draw(this, g, new Point(0, yPos));
}
}

Loading…
Cancel
Save