From ec82a1b4e2f84eb9b276a69fc6f7aba9f2979ebc Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 25 Jan 2024 18:01:23 -0800 Subject: [PATCH] Fix duplicate pin check string MessageTextFromValue returns text not floating point Fixes https://gitlab.com/kicad/code/kicad/-/issues/16758 --- eeschema/symbol_checker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/symbol_checker.cpp b/eeschema/symbol_checker.cpp index 76769d407a..b7038803c7 100644 --- a/eeschema/symbol_checker.cpp +++ b/eeschema/symbol_checker.cpp @@ -115,8 +115,8 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector& aMessages, { if( pin->GetUnit() == 0 || next->GetUnit() == 0 ) { - msg.Printf( _( "Duplicate pin %s %s at location (%.3f, %.3f)" - " conflicts with pin %s%s at location (%.3f, %.3f)" + msg.Printf( _( "Duplicate pin %s %s at location (%s, %s)" + " conflicts with pin %s%s at location (%s, %s)" " of converted." ), next->GetNumber(), nextName, @@ -129,8 +129,8 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector& aMessages, } else { - msg.Printf( _( "Duplicate pin %s %s at location (%.3f, %.3f)" - " conflicts with pin %s%s at location (%.3f, %.3f)" + msg.Printf( _( "Duplicate pin %s %s at location (%s, %s)" + " conflicts with pin %s%s at location (%s, %s)" " in units %s and %s of converted." ), next->GetNumber(), nextName,