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
8390fec6
Commit
8390fec6
authored
Apr 30, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes.
parent
47582e27
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
tool_manager.cpp
common/tool/tool_manager.cpp
+2
-0
tool_manager.h
include/tool/tool_manager.h
+1
-1
view_item.h
include/view/view_item.h
+8
-3
No files found.
common/tool/tool_manager.cpp
View file @
8390fec6
...
@@ -316,6 +316,8 @@ bool TOOL_MANAGER::RunAction( const std::string& aActionName, bool aNow, void* a
...
@@ -316,6 +316,8 @@ bool TOOL_MANAGER::RunAction( const std::string& aActionName, bool aNow, void* a
return
true
;
return
true
;
}
}
wxASSERT_MSG
(
action
!=
NULL
,
wxString
::
Format
(
_
(
"Could not find action %s."
),
aActionName
)
);
return
false
;
return
false
;
}
}
...
...
include/tool/tool_manager.h
View file @
8390fec6
...
@@ -116,7 +116,7 @@ public:
...
@@ -116,7 +116,7 @@ public:
return
RunAction
(
aActionName
,
aNow
,
reinterpret_cast
<
void
*>
(
aParam
)
);
return
RunAction
(
aActionName
,
aNow
,
reinterpret_cast
<
void
*>
(
aParam
)
);
}
}
bool
RunAction
(
const
std
::
string
&
aActionName
,
bool
aNow
,
void
*
aParam
=
NULL
);
bool
RunAction
(
const
std
::
string
&
aActionName
,
bool
aNow
,
void
*
aParam
);
bool
RunAction
(
const
std
::
string
&
aActionName
,
bool
aNow
=
false
)
bool
RunAction
(
const
std
::
string
&
aActionName
,
bool
aNow
=
false
)
{
{
...
...
include/view/view_item.h
View file @
8390fec6
...
@@ -203,11 +203,16 @@ public:
...
@@ -203,11 +203,16 @@ public:
*/
*/
virtual
void
ViewUpdate
(
int
aUpdateFlags
=
ALL
)
virtual
void
ViewUpdate
(
int
aUpdateFlags
=
ALL
)
{
{
if
(
m_view
&&
m_requiredUpdate
==
NONE
)
if
(
m_view
)
{
assert
(
aUpdateFlags
!=
NONE
);
if
(
m_requiredUpdate
==
NONE
)
m_view
->
MarkForUpdate
(
this
);
m_view
->
MarkForUpdate
(
this
);
m_requiredUpdate
|=
aUpdateFlags
;
m_requiredUpdate
|=
aUpdateFlags
;
}
}
}
/**
/**
* Function ViewRelease()
* Function ViewRelease()
...
...
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