- made sure that the location labels in the InfoBar have only the decimals required when the Grid snapping is ON
This commit is contained in:
@@ -481,11 +481,12 @@ class Distance(AppTool):
|
||||
else:
|
||||
pos = (pos_canvas[0], pos_canvas[1])
|
||||
|
||||
self.app.ui.position_label.setText(
|
||||
" <b>X</b>: {} <b>Y</b>: {}".format(
|
||||
'%.*f' % (self.decimals, pos[0]), '%.*f' % (self.decimals, pos[1])
|
||||
)
|
||||
)
|
||||
# self.app.ui.position_label.setText(
|
||||
# " <b>X</b>: {} <b>Y</b>: {}".format(
|
||||
# '%.*f' % (self.decimals, pos[0]), '%.*f' % (self.decimals, pos[1])
|
||||
# )
|
||||
# )
|
||||
self.app.ui.update_location_labels(dx=None, dy=None, x=pos[0], y=pos[1])
|
||||
|
||||
units = self.app.defaults["units"].lower()
|
||||
# self.app.plotcanvas.text_hud.text = \
|
||||
|
||||
Reference in New Issue
Block a user