瀏覽代碼

Maybe fixed error

Martin Edlund 5 年之前
父節點
當前提交
5f75b2cf0f

+ 1 - 0
SketchAssistant/SketchAssistantWPF/MVP_Presenter.cs

@@ -109,6 +109,7 @@ namespace SketchAssistantWPF
                         Tuple<int, int, List<InternalLine>> values = fileImporter.ParseSVGInputFile(fileNameTup.Item1, programModel.leftImageBoxWidth, programModel.leftImageBoxHeight);
                         values.Item3.ForEach(line => line.MakePermanent(0)); //Make all lines permanent
                         programModel.SetLeftLineList(values.Item1, values.Item2, values.Item3);
+                        programModel.ResizeEvent(CanvasSizeLeft, CanvasSizeRight);
                         programModel.ResetRightImage();
                         programModel.CanvasActivated();
                         programModel.ChangeState(true);

+ 4 - 0
SketchAssistant/SketchAssistantWPF/MainWindow.xaml.cs

@@ -264,7 +264,11 @@ namespace SketchAssistantWPF
         private void SVGMenuItem_Click(object sender, RoutedEventArgs e)
         {
             if (ProgramPresenter.SVGToolStripMenuItemClick())
+            {
+                ProgramPresenter.NewCanvas();
                 RightCanvas.EditingMode = InkCanvasEditingMode.Ink;
+                RightCanvas.Strokes.Clear();
+            }
         }
 
         /*************************/