Fix save graph to image for old saves.

This commit is contained in:
Oleg Sh
2024-08-13 14:24:35 +02:00
parent 23ef760b23
commit cb19bd9d4a
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ BaseVertex.prototype.getDefaultDiameterFactor = function (textSize)
BaseVertex.prototype.getBBox = function (style)
{
var textSize = DefaultMainTextFontSize;
if (style !== undefined)
if (style !== undefined && style.mainTextFontSize !== undefined)
{
textSize = style.mainTextFontSize;
}