diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 17:56:20 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-18 15:38:21 +0100 |
| commit | b1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch) | |
| tree | 206059d4fea3d5d05d106a11f10273129e5ed3d1 /CrowIDE | |
| parent | c94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff) | |
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'CrowIDE')
| -rw-r--r-- | CrowIDE/src/Editors/Editor.cs | 2 | ||||
| -rw-r--r-- | CrowIDE/src/Editors/ImlVisualEditor.cs | 2 | ||||
| -rw-r--r-- | CrowIDE/src/Editors/SvgEditor.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/CrowIDE/src/Editors/Editor.cs b/CrowIDE/src/Editors/Editor.cs index 2cd34412..7b95bb55 100644 --- a/CrowIDE/src/Editors/Editor.cs +++ b/CrowIDE/src/Editors/Editor.cs @@ -79,7 +79,7 @@ namespace Crow.Coding protected abstract void updateEditorFromProjFile (); protected abstract void updateProjFileFromEditor (); protected abstract bool EditorIsDirty { get; set; } - protected virtual bool IsReady { get { return true; }} + protected virtual bool IsReady { get { return projFile != null; }} protected virtual void updateCheckPostProcess () {} protected void backgroundThreadFunc () { diff --git a/CrowIDE/src/Editors/ImlVisualEditor.cs b/CrowIDE/src/Editors/ImlVisualEditor.cs index b1759fbc..11f94c17 100644 --- a/CrowIDE/src/Editors/ImlVisualEditor.cs +++ b/CrowIDE/src/Editors/ImlVisualEditor.cs @@ -434,7 +434,7 @@ namespace Crow.Coding gr.Rectangle (cb, 2.0 / z); string[] lerrs = Error.ToString ().Split ('\n'); Point p = cb.Center; - p.Y -= lerrs.Length * 20; + p.Y = 20; foreach (string le in lerrs) { drawCenteredTextLine(gr, p, le); p.Y += 20; diff --git a/CrowIDE/src/Editors/SvgEditor.cs b/CrowIDE/src/Editors/SvgEditor.cs index 219eea67..fce3d1aa 100644 --- a/CrowIDE/src/Editors/SvgEditor.cs +++ b/CrowIDE/src/Editors/SvgEditor.cs @@ -91,7 +91,7 @@ namespace Crow.Coding #endregion #region GraphicObject overrides - protected override int measureRawSize (LayoutingType lt) + protected override int measureRawSize(LayoutingType lt) { if (_pic == null) return 2 * Margin; |