Skip to content

Commit

Permalink
Fix width scaling value
Browse files Browse the repository at this point in the history
100mm in the UI now results in a 100mm label

Fixes #80
  • Loading branch information
gregdavill committed Jun 18, 2022
1 parent 6354e91 commit 00168be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KiBuzzard/dialog/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def ReGeneratePreview(self, e=None):
self.buzzard.padding.bottom = ParseFloat(self.m_PaddingBottomCtrl.GetValue(), DefaultPadding) * 0.5

self.buzzard.layer = self.m_LayerComboBox.GetValue()
self.buzzard.width = ParseFloat(self.m_WidthCtrl.GetValue(), 0.0) * 7.75 * (1/scale)
self.buzzard.width = ParseFloat(self.m_WidthCtrl.GetValue(), 0.0) * 7.55625 * (1/scale)

self.buzzard.alignment = self.m_AlignmentChoice.GetStringSelection()

Expand Down

0 comments on commit 00168be

Please sign in to comment.