kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31233
[PATCH] Nest level error, causes problems with git
Hi! I found that the nest level when saving stuff is wrong ( error from
the clipboard plugin ).
This patch fixes that so that version control systems doesnt generate
large diffs when saving.
--
-Kristoffer
>From d07b38f27509533de087a089febfe68dd8fb58db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20=C3=96dmark?= <kristoffer.odmark90@xxxxxxxxx>
Date: Fri, 27 Oct 2017 10:59:49 +0200
Subject: [PATCH] Fixed nest level when saving to not get giant diffs with
version control software such as git
---
pcbnew/kicad_plugin.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp
index ad1a5a021..1edb48d08 100644
--- a/pcbnew/kicad_plugin.cpp
+++ b/pcbnew/kicad_plugin.cpp
@@ -764,9 +764,9 @@ void PCB_IO::formatNetInformation( BOARD* aBoard, int aNestLevel ) const
void PCB_IO::formatHeader( BOARD* aBoard, int aNestLevel ) const
{
- formatGeneral( aBoard );
+ formatGeneral( aBoard ,aNestLevel );
// Layers.
- formatBoardLayers( aBoard );
+ formatBoardLayers( aBoard ,aNestLevel );
// Setup
formatSetup( aBoard, aNestLevel );
// Save net codes and names
@@ -775,7 +775,7 @@ void PCB_IO::formatHeader( BOARD* aBoard, int aNestLevel ) const
void PCB_IO::format( BOARD* aBoard, int aNestLevel ) const
{
- formatHeader( aBoard );
+ formatHeader( aBoard , aNestLevel);
// Save the modules.
for( MODULE* module = aBoard->m_Modules; module; module = module->Next() )
--
2.14.2
Follow ups