diff --git a/Ink Canvas/Ink Canvas.csproj b/Ink Canvas/Ink Canvas.csproj index d4917b31..b8248aeb 100644 --- a/Ink Canvas/Ink Canvas.csproj +++ b/Ink Canvas/Ink Canvas.csproj @@ -28,8 +28,15 @@ 2.0.2.%2a false false + AnyCPU + + True + + + True + diff --git a/Ink Canvas/MainWindow.xaml.cs b/Ink Canvas/MainWindow.xaml.cs index b9fa0cfc..c6622426 100644 --- a/Ink Canvas/MainWindow.xaml.cs +++ b/Ink Canvas/MainWindow.xaml.cs @@ -3855,7 +3855,15 @@ private void BtnSelect_Click(object sender, RoutedEventArgs e) } else { - inkCanvas.Select(inkCanvas.Strokes); + //inkCanvas.Select(inkCanvas.Strokes); + // Fixed bug: 当通过如鼠标点击等某些方式创建没有高度或长度的笔画时,全选功能不能使用克隆、旋转、翻转、调整笔画粗细、删除功能 + StrokeCollection selectedStrokes = new StrokeCollection(); + foreach (Stroke stroke in inkCanvas.Strokes) { + if (stroke.GetBounds().Width > 0 && stroke.GetBounds().Height > 0) { + selectedStrokes.Add(stroke); + } + } + inkCanvas.Select(selectedStrokes); } } else