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
bc707ced
Commit
bc707ced
authored
Mar 14, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Pcbnew crash on editing dimension's line width
parent
dcea11e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dimension.cpp
pcbnew/dimension.cpp
+6
-2
No files found.
pcbnew/dimension.cpp
View file @
bc707ced
...
@@ -160,10 +160,12 @@ void DIALOG_DIMENSION_EDITOR::OnCancelClick( wxCommandEvent& event )
...
@@ -160,10 +160,12 @@ void DIALOG_DIMENSION_EDITOR::OnCancelClick( wxCommandEvent& event )
void
DIALOG_DIMENSION_EDITOR
::
OnOKClick
(
wxCommandEvent
&
event
)
void
DIALOG_DIMENSION_EDITOR
::
OnOKClick
(
wxCommandEvent
&
event
)
{
{
#ifndef USE_WX_OVERLAY
if
(
m_DC
)
// Delete old text.
if
(
m_DC
)
// Delete old text.
{
{
CurrentDimension
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_XOR
);
CurrentDimension
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_XOR
);
}
}
#endif
m_Parent
->
SaveCopyInUndoList
(
CurrentDimension
,
UR_CHANGED
);
m_Parent
->
SaveCopyInUndoList
(
CurrentDimension
,
UR_CHANGED
);
...
@@ -207,12 +209,14 @@ void DIALOG_DIMENSION_EDITOR::OnOKClick( wxCommandEvent& event )
...
@@ -207,12 +209,14 @@ void DIALOG_DIMENSION_EDITOR::OnOKClick( wxCommandEvent& event )
CurrentDimension
->
Text
().
SetMirrored
(
(
m_rbMirror
->
GetSelection
()
==
1
)
?
true
:
false
);
CurrentDimension
->
Text
().
SetMirrored
(
(
m_rbMirror
->
GetSelection
()
==
1
)
?
true
:
false
);
CurrentDimension
->
SetLayer
(
m_SelLayerBox
->
GetLayerSelection
()
);
CurrentDimension
->
SetLayer
(
m_SelLayerBox
->
GetLayerSelection
()
);
#ifndef USE_WX_OVERLAY
if
(
m_DC
)
// Display new text
if
(
m_DC
)
// Display new text
{
{
CurrentDimension
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_OR
);
CurrentDimension
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_OR
);
}
}
#else
m_Parent
->
Refresh
();
#endif
m_Parent
->
OnModify
();
m_Parent
->
OnModify
();
EndModal
(
1
);
EndModal
(
1
);
}
}
...
...
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