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
e00648a4
Commit
e00648a4
authored
Oct 15, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in update classes, references to attributes in objectattributes wasn't updated
parent
da3bd92d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+7
-7
wb/lib/wb/src/wb_vrepdb.h
wb/lib/wb/src/wb_vrepdb.h
+2
-2
No files found.
wb/lib/wb/src/wb_vrepdb.cpp
View file @
e00648a4
/*
* Proview $Id: wb_vrepdb.cpp,v 1.5
4 2007-09-19 15:17:32
claes Exp $
* Proview $Id: wb_vrepdb.cpp,v 1.5
5 2007-10-15 12:15:47
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2216,7 +2216,7 @@ void wb_vrepdb::checkAttributes(pwr_tCid cid)
ap
->
n
.
nElement
=
n_adrep
->
nElement
();
}
if
(
o_adrep
->
isClass
()
&&
n_adrep
->
subClass
()
==
o_adrep
->
subClass
())
{
checkSubClass
(
o_adrep
->
subClass
(),
o_adrep
->
offset
(),
n_adrep
->
offset
());
checkSubClass
(
cid
,
o_adrep
->
subClass
(),
o_adrep
->
offset
(),
n_adrep
->
offset
());
}
delete
n_adrep
;
}
...
...
@@ -2232,12 +2232,12 @@ void wb_vrepdb::checkAttributes(pwr_tCid cid)
}
}
void
wb_vrepdb
::
checkSubClass
(
pwr_tCid
cid
,
unsigned
int
o_offset
,
unsigned
int
n_offset
)
void
wb_vrepdb
::
checkSubClass
(
pwr_tCid
cid
,
pwr_tCid
subcid
,
unsigned
int
o_offset
,
unsigned
int
n_offset
)
{
pwr_tStatus
sts
;
wb_cdrep
*
o_cdrep
=
m_merep
->
cdrep
(
&
sts
,
cid
);
wb_cdrep
*
o_cdrep
=
m_merep
->
cdrep
(
&
sts
,
sub
cid
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
cid
);
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
sub
cid
);
if
(
EVEN
(
sts
))
return
;
pwr_eBix
bix
=
pwr_eBix_rt
;
...
...
@@ -2287,11 +2287,11 @@ void wb_vrepdb::checkSubClass(pwr_tCid cid, unsigned int o_offset, unsigned int
ap
->
n
.
nElement
=
n_adrep
->
nElement
();
}
if
(
o_adrep
->
isClass
()
&&
o_adrep
->
subClass
()
==
n_adrep
->
subClass
())
{
checkSubClass
(
n_adrep
->
subClass
(),
o_adrep
->
offset
(),
n_adrep
->
offset
());
checkSubClass
(
cid
,
n_adrep
->
subClass
(),
o_adrep
->
offset
(),
n_adrep
->
offset
());
}
else
if
(
o_adrep
->
type
()
==
pwr_eType_AttrRef
)
{
sArefKey
a
;
a
.
cid
=
cid
;
a
.
cid
=
sub
cid
;
a
.
bix
=
bix
;
a
.
offset
=
o_adrep
->
offset
();
tree_Insert
(
&
sts
,
m_aref_th
,
&
a
);
...
...
wb/lib/wb/src/wb_vrepdb.h
View file @
e00648a4
/*
* Proview $Id: wb_vrepdb.h,v 1.3
2 2006-12-10 14:34:13 lw
Exp $
* Proview $Id: wb_vrepdb.h,v 1.3
3 2007-10-15 12:15:47 claes
Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -192,7 +192,7 @@ public:
int
updateArefs
(
pwr_tOid
oid
,
pwr_tCid
cid
);
int
checkClass
(
pwr_tCid
cid
);
void
checkAttributes
(
pwr_tCid
cid
);
void
checkSubClass
(
pwr_tCid
cid
,
unsigned
int
o_offset
,
unsigned
int
n_offset
);
void
checkSubClass
(
pwr_tCid
cid
,
pwr_tCid
subcid
,
unsigned
int
o_offset
,
unsigned
int
n_offset
);
//bool classIsChanged(pwr_tCid cid);
...
...
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