Re: RS_TextData const QString& style, error
Posted by
dxli on
Oct 26, 2014; 3:08am
URL: https://forum.librecad.org/RS-TextData-const-QString-style-error-tp5710573p5710574.html
do you have a github branch for this change?
Or share a patch again the master branch.
Please include enough information to reproduce this issue.
corecible wrote
when I use these codes:
RS_TextData textData = RS_TextData(RS_Vector(IED_RECTANGLE_LEFTTOP_X,IED_RECTANGLE_LEFTTOP_Y-(height*2/3)),RS_Vector(IED_RECTANGLE_LEFTTOP_X+IED_RECTANGLE_WIDTH,IED_RECTANGLE_LEFTTOP_Y-(height*2/3)),
(height/3>IED_NAME_HEIGHT)?IED_NAME_HEIGHT:height/3, 1.0,
RS_TextData::VABottom,
RS_TextData::HAFit,
RS_TextData::None,
iedName,
"wqy-unicode",
0.0);
RS_Text* text = new RS_Text(graphic, textData);
text->setPen(RS_Pen(RS_Color(255,255,255),RS2::Width01,RS2::SolidLine));
graphic->addEntity(text);
set style to "wqy-unicode" ,or any other style such as iso,unicode. librecad will run 100% cpu. Is there any thing should I do?
however when I only add image that is OK。 I think redraw graph is the problem.
my dev env is :
debian Debian GUN/Linux 7.0 (wheezy)
qt version :4.8.2.