fixed bug where no font path would result in error
This commit is contained in:
@@ -6,7 +6,7 @@ from draw.Iinstruction import *
|
|||||||
|
|
||||||
def nassi(filepath:str, output_path: str, gui, font_filepath: str=None):
|
def nassi(filepath:str, output_path: str, gui, font_filepath: str=None):
|
||||||
NSD = NassiShneidermanDiagram(gui.debug_mode)
|
NSD = NassiShneidermanDiagram(gui.debug_mode)
|
||||||
if font_filepath:
|
if font_filepath is not None and font_filepath is not "":
|
||||||
NSD.set_font(font_filepath)
|
NSD.set_font(font_filepath)
|
||||||
NSD.load_from_file(filepath)
|
NSD.load_from_file(filepath)
|
||||||
NSD.convert_to_image(output_path, 500)
|
NSD.convert_to_image(output_path, 500)
|
||||||
|
|||||||
Reference in New Issue
Block a user