Commit 3c7846db authored by lifekidyeaa's avatar lifekidyeaa

* fixed a dumb bug that prevented layer switching when over a track. doh!

parent c094566e
...@@ -1364,9 +1364,9 @@ void WinEDA_PcbFrame::SwitchLayer(wxDC *DC, int layer) ...@@ -1364,9 +1364,9 @@ void WinEDA_PcbFrame::SwitchLayer(wxDC *DC, int layer)
GetScreen()->m_Active_Layer = preslayer; GetScreen()->m_Active_Layer = preslayer;
Other_Layer_Route( (TRACK *) GetScreen()->m_CurrentItem, DC); Other_Layer_Route( (TRACK *) GetScreen()->m_CurrentItem, DC);
} }
}else{
GetScreen()->m_Active_Layer = layer;
} }
GetScreen()->m_Active_Layer = layer;
if ( DisplayOpt.ContrastModeDisplay ) if ( DisplayOpt.ContrastModeDisplay )
GetScreen()->SetRefreshReq(); GetScreen()->SetRefreshReq();
} }
......
## Makefile for PCBNEW et wxGTK ## Makefile for PCBNEW et wxGTK
CC = gcc CC = gcc
LD = gcc LD = gcc
# DEBUG = 1 #DEBUG = 1
# Compiler flags. # Compiler flags.
ifdef DEBUG ifdef DEBUG
...@@ -9,7 +9,7 @@ CPPFLAGS = -Wall -g `wx-config --cxxflags` ...@@ -9,7 +9,7 @@ CPPFLAGS = -Wall -g `wx-config --cxxflags`
LDFLAGS = -g LDFLAGS = -g
else else
CPPFLAGS = -Wall -O2 `wx-config --cxxflags` CPPFLAGS = -Wall -O2 `wx-config --cxxflags`
LDFLAGS = -s -v LDFLAGS = -s
endif endif
include ../libs.linux include ../libs.linux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment