Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-Datacontrol
Commits
38a6ad64
Commit
38a6ad64
authored
Dec 09, 2015
by
Isaak Lim
Browse files
null pointer check for getObject in datacontrol and selection plugin
parent
f88037b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
DataControlPlugin.cc
View file @
38a6ad64
...
...
@@ -390,14 +390,15 @@ void DataControlPlugin::fileOpened(int _id){
BaseObject
*
obj
=
0
;
if
(
PluginFunctions
::
getObject
(
_id
,
obj
)
)
if
(
PluginFunctions
::
getObject
(
_id
,
obj
)
)
{
model_
->
objectAdded
(
obj
);
// Only if the added object was a light source, we will traverse the objects!
if
(
obj
->
dataType
()
==
DATA_LIGHT
)
slotShowLightSources
(
tool_
->
lightSources
->
checkState
());
// Only if the added object was a light source, we will traverse the objects!
if
(
obj
->
dataType
()
==
DATA_LIGHT
)
slotShowLightSources
(
tool_
->
lightSources
->
checkState
());
view_
->
resizeColumnToContents
(
0
);
view_
->
resizeColumnToContents
(
0
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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