OSDN Git Service

折り畳みが正しく表示されないことがあった
[fooeditengine/FooEditEngine.git] / Core / EditView.cs
index e40ba2e..414c6ce 100644 (file)
@@ -275,12 +275,10 @@ namespace FooEditEngine
 
                     if (foldingData != null)
                     {
-                        if ((!this.LayoutLines.FoldingCollection.IsHasParent(foldingData) || 
-                             !this.LayoutLines.FoldingCollection.IsParentHidden(foldingData))
-                            && foldingData.IsFirstLine(this.LayoutLines, i))
-                            render.DrawFoldingMark(foldingData.Expand, this.PageBound.X + this.GetRealtiveX(AreaType.FoldingArea), pos.Y);
                         if (this.LayoutLines.FoldingCollection.IsHidden(lineIndex))
                             continue;
+                        if (foldingData.IsFirstLine(this.LayoutLines, i))
+                            render.DrawFoldingMark(foldingData.Expand, this.PageBound.X + this.GetRealtiveX(AreaType.FoldingArea), pos.Y);
                     }
 
                     if (this.Document.DrawLineNumber)