From 48a37c299827be3a2c99184927b956130874d6e4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 26 Nov 2017 14:31:15 +0100 Subject: [PATCH] Fix minor bug: pcbnew file save: dimensions timestamp updated on every save Fixes: lp:1733872 https://bugs.launchpad.net/kicad/+bug/1733872 --- pcbnew/pcb_parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 494b91e190..2808e19ee7 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -1624,7 +1624,11 @@ DIMENSION* PCB_PARSER::parseDIMENSION() case T_gr_text: { TEXTE_PCB* text = parseTEXTE_PCB(); + // This copy (using the copy constructor) rebuild the text timestamp, + // that is not what we want. dimension->Text() = *text; + // reinitialises the text time stamp to the right value (the dimension time stamp) + dimension->Text().SetTimeStamp( dimension->GetTimeStamp() ); dimension->SetPosition( text->GetTextPos() ); delete text; break;