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
4940bff8
Commit
4940bff8
authored
Dec 10, 2013
by
Maciej Suminski
Committed by
Wayne Stambaugh
Dec 10, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Commit merge request lp:197913.
parents
3701e131
0e7db240
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
drawpanel_gal.cpp
common/drawpanel_gal.cpp
+7
-0
class_drawpanel_gal.h
include/class_drawpanel_gal.h
+6
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+1
-0
No files found.
common/drawpanel_gal.cpp
View file @
4940bff8
...
@@ -184,6 +184,13 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool eraseBackground, const wxRect* rect )
...
@@ -184,6 +184,13 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool eraseBackground, const wxRect* rect )
}
}
void
EDA_DRAW_PANEL_GAL
::
StopDrawing
()
{
Disconnect
(
wxEVT_PAINT
,
wxPaintEventHandler
(
EDA_DRAW_PANEL_GAL
::
onPaint
),
NULL
,
this
);
m_refreshTimer
.
Stop
();
}
void
EDA_DRAW_PANEL_GAL
::
SwitchBackend
(
GalType
aGalType
)
void
EDA_DRAW_PANEL_GAL
::
SwitchBackend
(
GalType
aGalType
)
{
{
// Protect from refreshing during backend switch
// Protect from refreshing during backend switch
...
...
include/class_drawpanel_gal.h
View file @
4940bff8
...
@@ -111,6 +111,12 @@ public:
...
@@ -111,6 +111,12 @@ public:
m_eventDispatcher
=
aEventDispatcher
;
m_eventDispatcher
=
aEventDispatcher
;
}
}
/**
* Function StopDrawing()
* Prevents the GAL canvas from further drawing till it is recreated.
*/
void
StopDrawing
();
protected
:
protected
:
void
onPaint
(
wxPaintEvent
&
WXUNUSED
(
aEvent
)
);
void
onPaint
(
wxPaintEvent
&
WXUNUSED
(
aEvent
)
);
void
onSize
(
wxSizeEvent
&
aEvent
);
void
onSize
(
wxSizeEvent
&
aEvent
);
...
...
pcbnew/pcbframe.cpp
View file @
4940bff8
...
@@ -556,6 +556,7 @@ void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event )
...
@@ -556,6 +556,7 @@ void PCB_EDIT_FRAME::OnQuit( wxCommandEvent& event )
void
PCB_EDIT_FRAME
::
OnCloseWindow
(
wxCloseEvent
&
Event
)
void
PCB_EDIT_FRAME
::
OnCloseWindow
(
wxCloseEvent
&
Event
)
{
{
m_canvas
->
SetAbortRequest
(
true
);
m_canvas
->
SetAbortRequest
(
true
);
m_galCanvas
->
StopDrawing
();
if
(
GetScreen
()
->
IsModify
()
)
if
(
GetScreen
()
->
IsModify
()
)
{
{
...
...
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