Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f3810dba
Commit
f3810dba
authored
Jun 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in adrep() for array's, couldn't handle index
parent
8f5f8a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wb/lib/wb/src/wb_cdrep.cpp
wb/lib/wb/src/wb_cdrep.cpp
+3
-2
No files found.
wb/lib/wb/src/wb_cdrep.cpp
View file @
f3810dba
...
@@ -142,7 +142,7 @@ wb_bdrep *wb_cdrep::bdrep( pwr_tStatus *sts, pwr_eBix bix)
...
@@ -142,7 +142,7 @@ wb_bdrep *wb_cdrep::bdrep( pwr_tStatus *sts, pwr_eBix bix)
wb_adrep
*
wb_cdrep
::
adrep
(
pwr_tStatus
*
sts
,
const
char
*
aname
)
wb_adrep
*
wb_cdrep
::
adrep
(
pwr_tStatus
*
sts
,
const
char
*
aname
)
{
{
wb_
name
n
=
wb_
name
(
aname
);
wb_
attrname
n
=
wb_attr
name
(
aname
);
if
(
n
.
evenSts
())
{
if
(
n
.
evenSts
())
{
*
sts
=
n
.
sts
();
*
sts
=
n
.
sts
();
return
0
;
return
0
;
...
@@ -153,7 +153,8 @@ wb_adrep *wb_cdrep::adrep( pwr_tStatus *sts, const char *aname)
...
@@ -153,7 +153,8 @@ wb_adrep *wb_cdrep::adrep( pwr_tStatus *sts, const char *aname)
while
(
ODD
(
*
sts
))
{
while
(
ODD
(
*
sts
))
{
orep
->
ref
();
orep
->
ref
();
if
(
orep
->
cid
()
==
pwr_eClass_ObjBodyDef
)
{
if
(
orep
->
cid
()
==
pwr_eClass_ObjBodyDef
)
{
orep_attr
=
orep
->
vrep
()
->
child
(
sts
,
orep
,
n
);
wb_name
objectname
=
wb_name
(
n
.
attribute
());
orep_attr
=
orep
->
vrep
()
->
child
(
sts
,
orep
,
objectname
);
if
(
ODD
(
*
sts
)
/* && aname.attributeIsEqual( orep_attr->name()) */
)
{
if
(
ODD
(
*
sts
)
/* && aname.attributeIsEqual( orep_attr->name()) */
)
{
wb_adrep
*
adrep
=
new
wb_adrep
(
*
orep_attr
);
wb_adrep
*
adrep
=
new
wb_adrep
(
*
orep_attr
);
orep
->
unref
();
orep
->
unref
();
...
...
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