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
47a70734
Commit
47a70734
authored
Sep 30, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java compile problems for subgraphs with multiple annotations fixed
parent
5a3f5323
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
xtt/changelog.txt
xtt/changelog.txt
+1
-0
xtt/lib/glow/src/glow_exportjbean.cpp
xtt/lib/glow/src/glow_exportjbean.cpp
+9
-2
xtt/lib/glow/src/glow_exportjbean.h
xtt/lib/glow/src/glow_exportjbean.h
+2
-1
No files found.
xtt/changelog.txt
View file @
47a70734
...
...
@@ -145,3 +145,4 @@
090916 cs xtt Alarm time viewed in operator window.
090916 cs xtt New xtt command 'show objectlist /class='.
090916 cs xtt New xtt commands 'create opmenuitem' and 'delete opmenuitem' to modify operator window menu..
090930 cs ge Java compile problems for subgraphs with multiple annotations fixed.
\ No newline at end of file
xtt/lib/glow/src/glow_exportjbean.cpp
View file @
47a70734
...
...
@@ -228,6 +228,7 @@ void GlowExportJBean::nodeclass( GlowNodeClass *nc, glow_eExportPass pass,
break
;
case
glow_eExportPass_Init
:
{
frc_created
=
0
;
nc
->
measure_javabean
(
&
dim_x1
,
&
dim_x0
,
&
dim_y1
,
&
dim_y0
);
if
(
page
<=
1
)
...
...
@@ -1370,13 +1371,19 @@ void GlowExportJBean::annot( int x0, int y0, int number,
char
adjustmentstr
[
200
];
switch
(
adjustment
)
{
case
glow_eAdjustment_Right
:
if
(
!
frc_created
)
{
frc_created
=
1
;
fp
<<
" FontRenderContext frc = g.getFontRenderContext();"
<<
endl
;
}
sprintf
(
adjustmentstr
,
"- (float)g.getFont().getStringBounds(annot%d, frc).getWidth()"
,
number
);
break
;
case
glow_eAdjustment_Center
:
if
(
!
frc_created
)
{
frc_created
=
1
;
fp
<<
" FontRenderContext frc = g.getFontRenderContext();"
<<
endl
;
}
sprintf
(
adjustmentstr
,
"- (float)g.getFont().getStringBounds(annot%d, frc).getWidth()/2"
,
number
);
break
;
default:
...
...
xtt/lib/glow/src/glow_exportjbean.h
View file @
47a70734
...
...
@@ -33,7 +33,7 @@ class GlowNodeClass;
class
GlowExportJBean
{
public:
GlowExportJBean
(
GlowCtx
*
glow_ctx
,
GlowNodeClass
*
nodeclass
=
0
)
:
ctx
(
glow_ctx
),
nc
(
nodeclass
),
page
(
1
),
func_cnt
(
0
)
ctx
(
glow_ctx
),
nc
(
nodeclass
),
page
(
1
),
func_cnt
(
0
)
,
frc_created
(
0
)
{
is_nodeclass
=
(
nc
!=
NULL
);
};
...
...
@@ -191,6 +191,7 @@ class GlowExportJBean {
int
is_nodeclass
;
int
page
;
int
func_cnt
;
int
frc_created
;
};
#endif
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