[TD]fix integer grid step variable to double

This commit is contained in:
Wanderer Fan
2022-03-05 14:32:30 -05:00
committed by WandererFan
parent 64ddcc68fc
commit 273d7f8bd6

View File

@@ -506,7 +506,7 @@ void ViewProviderPage::setGrid(void)
}
int pageWidth = 298;
int pageHeight = 215;
int gridStep = GridSpacing.getValue() > 0 ? GridSpacing.getValue() : 10;
double gridStep = GridSpacing.getValue() > 0 ? GridSpacing.getValue() : 10.0;
if (dp) {
pageWidth = dp->getPageWidth();
pageHeight = dp->getPageHeight();