From 6cae0c01f3c50180eef6eacd401513f2b8f18e6d Mon Sep 17 00:00:00 2001
From: Edward <sabinusedward@yahoo.de>
Date: Wed, 8 Jul 2020 19:44:08 +0200
Subject: [PATCH] Fixed Decode-bug

---
 src/Manager/ViewManager.elm | 2 +-
 src/Util/ShapeManager.elm   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Manager/ViewManager.elm b/src/Manager/ViewManager.elm
index 4b8bc55..04c05ce 100644
--- a/src/Manager/ViewManager.elm
+++ b/src/Manager/ViewManager.elm
@@ -30,7 +30,7 @@ viewEditor model =
          , Html.section [class "section"] []
          , viewImage model
          , case model.httpLoadResult of
-             Ok  s -> text s
+             Ok  s -> text ""
              Err e -> text ("Could not load shapes: "++(httpErrorToString e))
          ]
         , case (getModalFromState model.state) of
diff --git a/src/Util/ShapeManager.elm b/src/Util/ShapeManager.elm
index 5fbb2f5..20a06cf 100644
--- a/src/Util/ShapeManager.elm
+++ b/src/Util/ShapeManager.elm
@@ -259,7 +259,7 @@ resultDecode jsonString =
                         ),
                         (JD.field ( "ellipse")
                                 (JD.map4
-                                    (\a b c d ->  Rectangle a b c d)
+                                    (\a b c d ->  Ellipse a b c d)
                                     (JD.field "cx" JD.string)
                                     (JD.field "cy" JD.string)
                                     (JD.field "rx" JD.string)
-- 
GitLab