http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252014-04-04T15:10:04ZRedmineWt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=88292014-04-04T15:10:04ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Koen Deforche</i></li></ul><p>Hey,</p>
<p>This is all without calling WAxis::setLabelFormat() ?</p>
<p>Regards,<br><br>
koen</p>
Wt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=88322014-04-04T15:24:42ZСтойчо Стефанов Stoycho Stefanov
<ul></ul><p>Hey Koen,</p>
<p>yes, I do not call WAxis::setLabelFormat() as I did with wt 3.3.1.</p>
<p>regards,<br><br>
stoycho</p>
Wt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=88332014-04-04T15:28:19ZСтойчо Стефанов Stoycho Stefanov
<ul></ul><p>yes, I do not call WAxis::setLabelFormat() (neither I did with wt 3.3.1)</p>
Wt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=88342014-04-04T16:48:00ZСтойчо Стефанов Stoycho Stefanov
<ul></ul><p>Hey,</p>
<p>it could be a hint to you. I had similar problem with rounding when a double form a WStandardItem is rendered in an abstract view widget (e.g., WTreeView). I saw that the boost::lecixal_cast does not convert a double into a std::string correctly. I always get the a string like "3.300000000001" from a double 3.3.</p>
<p>My work around was to print the double into an std::stringstream and to assign the stream's string to the WStandartItem.</p>
<p>regards,<br><br>
stoycho</p>
Wt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=88392014-04-05T10:58:06ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Feedback</i></li></ul><p>Hey,</p>
<p>There's a subtle difference between 3.3.1 and 3.3.2 here that may the culprit. In 3.3.1 the default format was an empty string, causing the format to be chosen based on heuristics.</p>
<p>In 3.3.2, the default format is no longer an empty string (and that's also no longer stated as such in he documentation), but the default format still keeps the same behavior. Setting an empty string as format will cause the axis's labels to be formatted by the user's locale. If you were thus calling setLabelFormat("") in 3.3.1 then you would see the behavior you are now seeing (I could reproduce it only by setting an empty string as label format).</p>
<p>The 3.3.2 situation is still not satisfying, which is why there is now a new issue (<a class="issue tracker-1 status-1 priority-4 priority-default" title="Bug: Consistently ignore default Locale, and format using WLocale (New)" href="http://redmine.emweb.be/issues/2804">#2804</a>) to research a definite solution for localization support in Wt.</p>
<p>Regards,<br><br>
koen</p>
Wt - Bug #2904: defalut Axis label formathttp://redmine.emweb.be/issues/2904?journal_id=94252014-05-27T14:29:31ZKoen Deforchekoen@emweb.be
<ul><li><strong>Target version</strong> changed from <i>3.3.3</i> to <i>3.3.4</i></li></ul>