* Bug #13258 fixed - Bad number display in datatips fixed.
+* Bug #13271 fixed - plot2d with logarithmic scale and %nan value freezed Scilab.
+
Xcos Bug Fixes
==============
/*------------------------------------------------------------------------*/
double sciFindStPosMin(const double x[], int n)
{
- double min = 0.;
+ double min = -1.0;
int i = 0;
if (n <= 0)
{
- return -1.0;
+ return min;
}
- min = x[0];
+ for (i = 0; i < n; i++)
+ {
+ if (x[i] > 0)
+ {
+ min = x[i];
+ break;
+ }
+ }
- for (i = 1 ; i < n ; i++)
+ for (; i < n ; i++)
{
if (x[i] > 0.0 && x[i] < min)
{
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2014 - Scilab Enterprises - Calixte DENIZET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- TEST WITH GRAPHIC -->
+// <-- Non-regression test for bug 13213 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/13213
+//
+// <-- Short Description -->
+// plot2d with logscale and %nan value freezed scilab
+plot2d("nl", [1:2], [%nan;1]);
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2014 - Scilab Enterprises - Calixte DENIZET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- TEST WITH GRAPHIC -->
+
+// <-- Non-regression test for bug 13213 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/13213
+//
+// <-- Short Description -->
+// plot2d with logscale and %nan value freezed scilab
+
+plot2d("nl", [1:2], [%nan;1]);
\ No newline at end of file