Skip to content

Commit ef6c418

Browse files
committed
fix issue #2: font dialog crashed the app
1 parent 5780fdd commit ef6c418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TclTk/TkFontManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getFixedFont(): Font
5454
protected function createFontFromTclEvalResult(string $name): TkFont
5555
{
5656
$this->interp->eval("font actual $name");
57-
$fontOptions = new TkFontOptions($this->interp->getListResult());
57+
$fontOptions = TkFontOptions::createFromList($this->interp->getListResult());
5858
return TkFont::createFromFontOptions($fontOptions);
5959
}
6060

0 commit comments

Comments
 (0)