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
6d2271d3
Commit
6d2271d3
authored
Jul 07, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge XY curve bugfix in point allocation size
parent
6b05b7ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+7
-6
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
6d2271d3
...
...
@@ -9231,6 +9231,7 @@ int GeXY_Curve::scan( grow_tObject object)
int
attr_type_x
;
int
attr_type_y
;
int
attr_size
;
int
attr_elem
;
pwr_tAName
parsed_name
;
int
sts
;
int
inverted
;
...
...
@@ -9253,15 +9254,15 @@ int GeXY_Curve::scan( grow_tObject object)
// Attribute starting with '&' indicates reference
pwr_tAName
refname
;
dyn
->
parse_attr_name
(
x_attr
,
refname
,
&
inverted
,
&attr_type_x, &attr_size);
&
attr_type_x
,
&
attr_size
,
&
attr_elem
);
sts
=
dyn
->
graph
->
get_reference_name
(
refname
,
parsed_name
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
dyn
->
parse_attr_name
(
x_attr
,
parsed_name
,
&inverted, &attr_type_x, &attr_size);
&
inverted
,
&
attr_type_x
,
&
attr_size
,
&
attr_elem
);
}
x_value = calloc(
no_of_points, attr_size
);
x_value
=
calloc
(
max
(
attr_elem
,
no_of_points
),
attr_size
/
attr_elem
);
sts
=
gdh_GetObjectInfo
(
parsed_name
,
x_value
,
attr_size
);
if
(
EVEN
(
sts
))
return
1
;
...
...
@@ -9272,15 +9273,15 @@ int GeXY_Curve::scan( grow_tObject object)
// Attribute starting with '&' indicates reference
pwr_tAName
refname
;
dyn
->
parse_attr_name
(
y_attr
,
refname
,
&
inverted
,
&attr_type_y, &attr_size);
&
attr_type_y
,
&
attr_size
,
&
attr_elem
);
sts
=
dyn
->
graph
->
get_reference_name
(
refname
,
parsed_name
);
if
(
EVEN
(
sts
))
return
1
;
}
else
{
dyn
->
parse_attr_name
(
y_attr
,
parsed_name
,
&inverted, &attr_type_y, &attr_size);
&
inverted
,
&
attr_type_y
,
&
attr_size
,
&
attr_elem
);
}
y_value = calloc(
no_of_points, attr_size
);
y_value
=
calloc
(
max
(
attr_elem
,
no_of_points
),
attr_size
/
attr_elem
);
sts
=
gdh_GetObjectInfo
(
parsed_name
,
y_value
,
attr_size
);
if
(
EVEN
(
sts
))
return
1
;
break
;
...
...
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