From: jpbruyere Date: Tue, 23 Aug 2016 09:21:35 +0000 (+0200) Subject: adapt when DEBUG_LAYOUTING not set X-Git-Tag: v0.5.1~28^2~33 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=4fd5c81c6579581d47f70b373daacae8a59200e0;p=jp%2Fcrow.git adapt when DEBUG_LAYOUTING not set --- diff --git a/src/Interface.cs b/src/Interface.cs index 0c1cd766..1659c0ea 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -329,6 +329,8 @@ namespace Crow // get { return curUpdateLQIs.Where(l=>l.LayoutingTries>2 || l.DiscardCount > 0).ToArray(); } // } public LayoutingQueueItem currentLQI = null; + #else + public List LQIs = null;//still create the var for CrowIDE #endif public void Update(){ if (mouseRepeatCount > 0) { diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 5ec454c5..3b19efc9 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -142,12 +142,12 @@ namespace Crow #endif } } - #if DEBUG_LAYOUTING public class LQIList : List{ + #if DEBUG_LAYOUTING public List GetRootLQIs(){ return this.Where (lqi => lqi.wasTriggeredBy == null).ToList (); } + #endif } - #endif }