Skip to content

Commit

Permalink
bugfix: removed useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Dec 4, 2024
1 parent 01f16f6 commit a059668
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions GsaGH/Helpers/GH/TextWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,12 @@ private static float GetCachedTextWidth(string text, Font font, int maxWidth) {
}

public static string GetFontName(RhinoDoc testPurpose = null) {
string fontName = "Arial";
try {
RhinoDoc activeRhino = testPurpose ?? RhinoDoc.ActiveDoc;
fontName = activeRhino.DimStyles.Current.Font.FamilyName;
return activeRhino.DimStyles.Current.Font.FamilyName;
} catch { //will be catched only by tests
return fontName;
return "Arial";
}

return fontName;
}
}
}

0 comments on commit a059668

Please sign in to comment.