Skip to content

Commit

Permalink
🐛 fix:某些图片无法添加图片标题
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Feb 12, 2025
1 parent 5bc4f15 commit 4488905
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
60 changes: 30 additions & 30 deletions SlideSCI/Ribbon1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions SlideSCI/Ribbon1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ private void AddTitleToImage(object sender, RibbonControlEventArgs e)
int count = 1;
foreach (PowerPoint.Shape selectedShape in sel.ShapeRange)
{
if (selectedShape.Type == Office.MsoShapeType.msoPicture)
{

PowerPoint.Shape titleShape = slide.Shapes.AddTextbox(
Office.MsoTextOrientation.msoTextOrientationHorizontal,
selectedShape.Left,
Expand Down Expand Up @@ -176,7 +175,7 @@ private void AddTitleToImage(object sender, RibbonControlEventArgs e)
titleShape.Select(Office.MsoTriState.msoFalse);
}
count++;
}

}
}
else
Expand Down

0 comments on commit 4488905

Please sign in to comment.