From 1715e736d59137f0ca33b3616b5b3b2dc43fd406 Mon Sep 17 00:00:00 2001 From: Vincent COUVERT Date: Tue, 24 Jul 2012 14:39:33 +0200 Subject: [PATCH] * Bug #11331 fixed - graypolarplot() returned an error about an unknown property. test_run("graphics","bug_11331") Change-Id: Ie11f1b85601004887f79109170a7e1028c2ac02c --- scilab/CHANGES_5.4.X | 2 ++ scilab/modules/graphics/macros/graypolarplot.sci | 1 - .../graphics/tests/nonreg_tests/bug_11331.dia.ref | 15 +++++++++++++++ .../graphics/tests/nonreg_tests/bug_11331.tst | 18 ++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 scilab/modules/graphics/tests/nonreg_tests/bug_11331.dia.ref create mode 100644 scilab/modules/graphics/tests/nonreg_tests/bug_11331.tst diff --git a/scilab/CHANGES_5.4.X b/scilab/CHANGES_5.4.X index 804a968..29e22d6 100644 --- a/scilab/CHANGES_5.4.X +++ b/scilab/CHANGES_5.4.X @@ -158,6 +158,8 @@ Bug Fixes * Bug #11328 fixed - strsplit returned a wrong error message when second input argument contained wrong values. +* Bug #11331 fixed - graypolarplot() returned an error about an unknown property. + * Bug #11346 fixed - Add error messages in the cosm function in case of bad usage. diff --git a/scilab/modules/graphics/macros/graypolarplot.sci b/scilab/modules/graphics/macros/graypolarplot.sci index 7dea700..7a04cf1 100644 --- a/scilab/modules/graphics/macros/graypolarplot.sci +++ b/scilab/modules/graphics/macros/graypolarplot.sci @@ -16,7 +16,6 @@ if rhs<=0 then f=gcf(); f.color_map=hotcolormap(128); f.background= 128; - f.foreground=1; a=gca(); a.background= 128; a.foreground=1; diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_11331.dia.ref b/scilab/modules/graphics/tests/nonreg_tests/bug_11331.dia.ref new file mode 100644 index 0000000..27743c9 --- /dev/null +++ b/scilab/modules/graphics/tests/nonreg_tests/bug_11331.dia.ref @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- TEST WITH GRAPHIC --> +// <-- Non-regression test for bug 11331 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11331 +// +// <-- Short Description --> +// graypolarplot() returned an error about an unknown property. +assert_checktrue(execstr("graypolarplot()", "errcatch") == 0); diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_11331.tst b/scilab/modules/graphics/tests/nonreg_tests/bug_11331.tst new file mode 100644 index 0000000..4294df7 --- /dev/null +++ b/scilab/modules/graphics/tests/nonreg_tests/bug_11331.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> + +// <-- Non-regression test for bug 11331 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11331 +// +// <-- Short Description --> +// graypolarplot() returned an error about an unknown property. + +assert_checktrue(execstr("graypolarplot()", "errcatch") == 0); \ No newline at end of file -- 1.7.9.5