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
057a947a
Commit
057a947a
authored
Dec 22, 2013
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Fixing crash/missing refresh in pcb text
parent
f3cfea95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
dialog_pcb_text_properties.cpp
pcbnew/dialogs/dialog_pcb_text_properties.cpp
+6
-1
No files found.
pcbnew/dialogs/dialog_pcb_text_properties.cpp
View file @
057a947a
...
...
@@ -187,11 +187,13 @@ void DIALOG_PCB_TEXT_PROPERTIES::OnOkClick( wxCommandEvent& event )
if
(
m_SelectedPCBText
->
GetFlags
()
!=
0
)
m_SelectedPCBText
->
SetFlags
(
IN_EDIT
);
#ifndef USE_WX_OVERLAY
// Erase old text on screen if context is available
if
(
m_DC
)
{
m_SelectedPCBText
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_XOR
);
}
#endif
// Set the new text content
if
(
!
m_TextContentCtrl
->
GetValue
().
IsEmpty
()
)
...
...
@@ -268,12 +270,15 @@ void DIALOG_PCB_TEXT_PROPERTIES::OnOkClick( wxCommandEvent& event )
break
;
}
#ifndef USE_WX_OVERLAY
// Finally, display new text if there is a context to do so
if
(
m_DC
)
{
m_SelectedPCBText
->
Draw
(
m_Parent
->
GetCanvas
(),
m_DC
,
GR_OR
);
}
#else
m_parent
->
Refresh
();
#endif
m_Parent
->
OnModify
();
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