Skip to content

Commit

Permalink
v8: app didn't run when user adds Inkscape to system PATH (#1935, #1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Jul 10, 2024
1 parent e968f7d commit d764dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions v8/Components/ImageGlass.Heart/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static ImgData Load(
#region Settings
if (ext.Equals(".SVG", StringComparison.OrdinalIgnoreCase)) {
settings.BackgroundColor = MagickColors.Transparent;
settings.Format = MagickFormat.Rsvg;
settings.SetDefine("svg:xml-parse-huge", "true");
}
else if (ext.Equals(".HEIC", StringComparison.OrdinalIgnoreCase)
Expand Down
7 changes: 3 additions & 4 deletions v8/ImageGlass/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2540,11 +2540,11 @@ private List<NavigationRegion> GetNavigationRegions() {
var width = Math.Max(Configs.Theme.NavArrowLeft.Height, picMain.Width / 10);

return new List<NavigationRegion> {
new NavigationRegion() {
new() {
Type = NavigationRegionType.Left,
Region = new Rectangle(0, 0, width, picMain.Height),
},
new NavigationRegion() {
new() {
Type = NavigationRegionType.Right,
Region = new Rectangle(picMain.Width - width, 0, width, picMain.Height),
}
Expand Down Expand Up @@ -4933,8 +4933,7 @@ private void EditByDefaultApp(string filename) {


private void mnuMainShare_Click(object sender, EventArgs e) {
var filename = "";

string filename;
if (Local.IsTempMemoryData) {
filename = SaveTemporaryMemoryData();
}
Expand Down

0 comments on commit d764dd0

Please sign in to comment.