kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #28699
[PATCH] Tiny UI patch - " to in
Hi,
Here's a micro-patch to close out a little UI wrinkle - the Design
Rules Pcbnew dialog used ", not in, for the imperial unit labels.
Closes: https://bugs.launchpad.net/kicad/+bug/1667644
Cheers,
John
From 8c3de299c27062b6b2020843f6791e5d14d6c3cb Mon Sep 17 00:00:00 2001
From: John Beard <john.j.beard@xxxxxxxxx>
Date: Wed, 15 Mar 2017 07:06:48 +0800
Subject: [PATCH] Use abbreviated unit (not symbol) in design rule dialog
Fixes: lp:1667644
* https://bugs.launchpad.net/kicad/+bug/1667644
---
pcbnew/dialogs/dialog_design_rules.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pcbnew/dialogs/dialog_design_rules.cpp b/pcbnew/dialogs/dialog_design_rules.cpp
index 536fb599d..1de2f1ba2 100644
--- a/pcbnew/dialogs/dialog_design_rules.cpp
+++ b/pcbnew/dialogs/dialog_design_rules.cpp
@@ -278,7 +278,7 @@ void DIALOG_DESIGN_RULES::InitDialogRules()
void DIALOG_DESIGN_RULES::InitGlobalRules()
{
// Set unit labels
- wxString units = ReturnUnitSymbol( g_UserUnit, "%s" );
+ const wxString units = GetAbbreviatedUnitsLabel( g_UserUnit );
m_ViaMinUnits->SetLabel( units );
m_ViaMinDrillUnits->SetLabel( units );
--
2.12.0
Follow ups