Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
fe97521b
Commit
fe97521b
authored
Jan 26, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix Bug #1272926 (Texts are now not accepted on edge cuts layer)
parent
3354bdde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
dialog_pcb_text_properties.cpp
pcbnew/dialogs/dialog_pcb_text_properties.cpp
+9
-0
onleftclick.cpp
pcbnew/onleftclick.cpp
+8
-1
No files found.
pcbnew/dialogs/dialog_pcb_text_properties.cpp
View file @
fe97521b
...
...
@@ -172,6 +172,15 @@ void DIALOG_PCB_TEXT_PROPERTIES::OnCancelClick( wxCommandEvent& event )
void
DIALOG_PCB_TEXT_PROPERTIES
::
OnOkClick
(
wxCommandEvent
&
event
)
{
// Test for acceptable layer.
// Incorrect layer can happen for old boards,
// having texts on edge cut layer for instance
if
(
m_LayerSelectionCtrl
->
GetLayerSelection
()
<
0
)
{
wxMessageBox
(
wxT
(
"No layer selected, Please select the text layer"
)
);
return
;
}
wxPoint
newPosition
;
wxSize
newSize
;
...
...
pcbnew/onleftclick.cpp
View file @
fe97521b
...
...
@@ -325,6 +325,13 @@ void PCB_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
break
;
case
ID_PCB_ADD_TEXT_BUTT
:
if
(
IsLayerInList
(
EDGE_LAYER
,
getActiveLayer
()
)
)
{
DisplayError
(
this
,
_
(
"Texts not allowed on Edge Cut layers"
)
);
break
;
}
if
(
(
DrawStruct
==
NULL
)
||
(
DrawStruct
->
GetFlags
()
==
0
)
)
{
SetCurItem
(
CreateTextePcb
(
aDC
)
);
...
...
@@ -367,7 +374,7 @@ void PCB_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
break
;
case
ID_PCB_DIMENSION_BUTT
:
if
(
IsLayerInList
(
EDGE_LAYER
|
ALL_CU_LAYERS
,
getActiveLayer
()
)
)
if
(
IsLayerInList
(
EDGE_LAYER
|
ALL_CU_LAYERS
,
getActiveLayer
()
)
)
{
DisplayError
(
this
,
_
(
"Dimension not allowed on Copper or Edge Cut layers"
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment