From 517c555d6ad02ccc39392662e2b99e5677f7ce23 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 10 Mar 2014 10:18:48 +0100 Subject: [PATCH] Removed unnecessary casting. --- common/worksheet_viewitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/worksheet_viewitem.cpp b/common/worksheet_viewitem.cpp index ba4185f8af..e261b3eff9 100644 --- a/common/worksheet_viewitem.cpp +++ b/common/worksheet_viewitem.cpp @@ -189,7 +189,7 @@ void WORKSHEET_VIEWITEM::draw( const WS_DRAW_ITEM_TEXT* aItem, GAL* aGal ) const aGal->SetStrokeColor( COLOR4D( aItem->GetColor() ) ); aGal->SetLineWidth( aItem->GetThickness() ); aGal->SetTextAttributes( aItem ); - aGal->StrokeText( std::wstring( aItem->GetText().wc_str() ), position, 0.0 ); + aGal->StrokeText( aItem->GetText(), position, 0.0 ); }