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
33f46c23
Commit
33f46c23
authored
May 08, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProjectReg objects: path changed when Project changed in configurator
parent
4c1c93e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wb/lib/wb/src/wb_pvd_pl.cpp
wb/lib/wb/src/wb_pvd_pl.cpp
+13
-0
No files found.
wb/lib/wb/src/wb_pvd_pl.cpp
View file @
33f46c23
...
@@ -94,6 +94,19 @@ void wb_pvd_pl::writeAttribute( co_procom *pcom, pwr_tOix oix, unsigned int offs
...
@@ -94,6 +94,19 @@ void wb_pvd_pl::writeAttribute( co_procom *pcom, pwr_tOix oix, unsigned int offs
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Project
-
(
char
*
)
&
body
))
{
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Project
-
(
char
*
)
&
body
))
{
m_list
[
oix
].
flags
|=
pl_mFlags_ProjectModified
;
m_list
[
oix
].
flags
|=
pl_mFlags_ProjectModified
;
cdh_ToLower
(
buffer
,
buffer
);
cdh_ToLower
(
buffer
,
buffer
);
// Set path
char
path
[
80
];
char
*
s
;
unsigned
int
path_offset
;
path_offset
=
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
);
strcpy
(
path
,
(
char
*
)((
unsigned
long
)
m_list
[
oix
].
body
+
(
unsigned
long
)
path_offset
));
if
(
(
s
=
strrchr
(
path
,
'/'
)))
{
strncpy
(
s
+
1
,
buffer
,
sizeof
(
path
)
-
strlen
(
path
));
strncpy
(
(
char
*
)((
unsigned
long
)
m_list
[
oix
].
body
+
(
unsigned
long
)
path_offset
),
path
,
sizeof
(
body
.
Path
));
}
}
}
else
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
))
{
else
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
))
{
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
...
...
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