Skip to content

Commit c9a6c27

Browse files
committed
[grc] fix ellipsis for c++20
1 parent 1321205 commit c9a6c27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/gdi/grc.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ void gDC::exec(const gOpcode *o)
796796
break;
797797
case gOpcode::renderText:
798798
{
799+
const char *ellipsis = reinterpret_cast<const char *>(u8"");
799800
ePtr<eTextPara> para = new eTextPara(o->parm.renderText->area);
800801
int flags = o->parm.renderText->flags;
801802
int border = o->parm.renderText->border;
@@ -811,7 +812,7 @@ void gDC::exec(const gOpcode *o)
811812
if (flags & gPainter::RT_WRAP) // Remove wrap
812813
flags -= gPainter::RT_WRAP;
813814
std::string text = o->parm.renderText->text;
814-
text += u8"";
815+
text += ellipsis;
815816

816817
eTextPara testpara(o->parm.renderText->area);
817818
testpara.setFont(m_current_font);
@@ -826,7 +827,7 @@ void gDC::exec(const gOpcode *o)
826827
if ((int)text.size() > ns)
827828
{
828829
text.resize(ns);
829-
text += u8"";
830+
text += ellipsis;
830831
}
831832
if (o->parm.renderText->text)
832833
free(o->parm.renderText->text);

0 commit comments

Comments
 (0)