![]() |
Markup parsing |
Post Reply
|
| Author | |
gpm1
Groupie
Joined: 06 June 2006 Status: Offline Points: 54 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup parsingPosted: 12 June 2008 at 12:15pm |
|
Hello,
In the file XTPMarkupDrawingContext.cpp there is next method: CXTPMarkupObject* CXTPMarkupPoint::ConvertFrom(CXTPMarkupObject* pObject) const { if (IsStringObject(pObject)) { LPCWSTR lpszValue = *(CXTPMarkupString*)pObject; float x = 0 , y = 0; if (WSCANF_S(lpszValue, L"%f,%f", &x, &y) != 2) return FALSE; return new CXTPMarkupPoint(x, y); } return FALSE; } While parsing that block of xaml: <LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1"> on a PC with locales where decimal symbol is , parsing is failed. For correct parsing there shouldn't be decimal point the same. Pavel |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2008 at 6:28am |
|
Hi, Do you see it with our MarkupPad sample ?
I changed it in regional settings, but it works.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
gpm1
Groupie
Joined: 06 June 2006 Status: Offline Points: 54 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2008 at 7:08am |
|
Hi,
Try to set in App setlocale( LC_ALL, "" ); and then open, with , as decimal symbol. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 June 2008 at 6:42am |
|
Thanks. fixed for 12.0.1
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |