Patch by Wim: The resulting expression string is now fit to the current width

of the window. Insignificant digits are truncated from the end. DeskCalc may
also switch to scientific notation if there is not enough room left.

Thanks a lot! Fixes ticket #5203.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36402 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-04-21 17:20:29 +00:00
parent d7fcb36f2b
commit 665c794f1d
3 changed files with 173 additions and 7 deletions
+1 -1
View File
@@ -917,7 +917,7 @@ CalcView::Evaluate()
}
// render new result to display
fExpressionTextView->SetExpression(value.String());
fExpressionTextView->SetValue(value.String());
}