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
7d893541
Commit
7d893541
authored
Dec 01, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge object text size copy fix
parent
56996ce2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
xtt/lib/glow/src/glow_growtext.cpp
xtt/lib/glow/src/glow_growtext.cpp
+10
-0
xtt/lib/glow/src/glow_growtext.h
xtt/lib/glow/src/glow_growtext.h
+3
-0
No files found.
xtt/lib/glow/src/glow_growtext.cpp
View file @
7d893541
...
...
@@ -71,6 +71,15 @@ GrowText::GrowText( GrowCtx *glow_ctx, const char *name, const char *text1, doub
draw
(
&
ctx
->
mw
,
(
GlowTransform
*
)
NULL
,
highlight
,
hot
,
NULL
,
NULL
);
}
GrowText
::
GrowText
(
const
GrowText
&
n
)
:
GlowText
(
n
)
{
memcpy
(
this
,
&
n
,
sizeof
(
n
));
if
(
n
.
text
)
{
text
=
(
char
*
)
malloc
(
strlen
(
n
.
text
)
+
1
);
strcpy
(
text
,
n
.
text
);
}
}
GrowText
::~
GrowText
()
{
ctx
->
object_deleted
(
this
);
...
...
@@ -1181,3 +1190,4 @@ void GrowText::export_flow( GlowExportFlow *ef)
{
ef
->
text
(
this
);
}
xtt/lib/glow/src/glow_growtext.h
View file @
7d893541
...
...
@@ -77,6 +77,8 @@ class GrowText : public GlowText {
glow_mDisplayLevel
display_lev
=
glow_mDisplayLevel_1
,
int
nodraw
=
0
);
GrowText
(
const
GrowText
&
x
);
//! Destructor
~
GrowText
();
...
...
@@ -502,6 +504,7 @@ class GrowText : public GlowText {
void
export_flow
(
GlowExportFlow
*
ef
);
glow_eDrawType
get_text_color
()
{
return
color_drawtype
;}
};
/*@}*/
...
...
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