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
7422dce9
Commit
7422dce9
authored
Feb 08, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Volref for casted attribute class was missed if object class was already checked
parent
396adbd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+31
-1
No files found.
wb/lib/wb/src/wb_dbs.cpp
View file @
7422dce9
/*
/*
* Proview $Id: wb_dbs.cpp,v 1.2
6 2006-05-21 22:30:50 lw
Exp $
* Proview $Id: wb_dbs.cpp,v 1.2
7 2007-02-08 12:45:07 claes
Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -1072,6 +1072,36 @@ wb_dbs::cidInsert(pwr_tStatus *sts, pwr_tCid cid, pwr_sAttrRef *arp, sCentry **c
...
@@ -1072,6 +1072,36 @@ wb_dbs::cidInsert(pwr_tStatus *sts, pwr_tCid cid, pwr_sAttrRef *arp, sCentry **c
free
(
lst
);
free
(
lst
);
free
(
arlst
);
free
(
arlst
);
}
}
else
if
(
!
(
cdh_CidToVid
(
cid
)
==
1
&&
cdh_CidToVid
(
cid
)
==
2
))
{
// Check class of casted attribute for every instance
pwr_tCid
*
lst
;
pwr_sAttrRef
*
arlst
;
sCentry
*
entry
;
int
cnt
;
pwr_tStatus
lsts
;
pwr_sAttrRef
aref
;
pwr_sAttrRef
cast_aref
;
pwr_tCid
cast_cid
;
m_v
->
merep
()
->
classDependency
(
&
lsts
,
cid
,
&
lst
,
&
arlst
,
&
cnt
);
for
(
int
i
=
0
;
i
<
cnt
;
i
++
)
{
aref
=
cdh_ArefAdd
(
arp
,
&
arlst
[
i
]);
if
(
aref
.
Flags
.
b
.
CastAttr
)
{
cast_aref
=
cdh_ArefToCastAref
(
&
aref
);
wb_volume
v
(
m_v
);
wb_attribute
a
=
v
.
attribute
(
&
cast_aref
);
if
(
a
)
{
a
.
value
(
&
cast_cid
);
if
(
cast_cid
!=
pwr_cNCid
)
cidInsert
(
&
lsts
,
cast_cid
,
0
,
&
entry
);
}
}
}
free
(
lst
);
free
(
arlst
);
}
}
}
void
void
...
...
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