From: Stéphane Mottelet Date: Fri, 17 Jan 2020 17:29:00 +0000 (+0100) Subject: * Bug 11363 fixed: now show_window raises the current graphics X-Git-Tag: 6.1.0~237 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=1b6bbff1dcfa650ba4c4580621b748edf6b339d4 * Bug 11363 fixed: now show_window raises the current graphics https://bugzilla.scilab.org/show_bug.cgi?id=11363 Change-Id: I90482702c8d82d60daf2a13dd977684b57911d1e --- diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md index 4b63b17..37821b9 100644 --- a/scilab/CHANGES.md +++ b/scilab/CHANGES.md @@ -204,6 +204,7 @@ Bug Fixes * [#10353](http://bugzilla.scilab.org/show_bug.cgi?id=10353): Documentation: The referential for the uicontrol.position property was not provided. Moreover, gca().axes_bounds refered to fig.figure_size instead of fig.axes_size. * [#10723](http://bugzilla.scilab.org/show_bug.cgi?id=10723): `subplot`'s action was unclearly described in its help page. Page improved. * [#11852](http://bugzilla.scilab.org/show_bug.cgi?id=11852): File browser didn't update after file creation or remove. +* [#11363](http://bugzilla.scilab.org/show_bug.cgi?id=11363): show_window() did not raise the current graphics window. * [#12520](http://bugzilla.scilab.org/show_bug.cgi?id=12520): Vriable browser did not display the size of the variables. * [#12534](http://bugzilla.scilab.org/show_bug.cgi?id=12534): Variable browser did not display the size of the variables. * [#13766](http://bugzilla.scilab.org/show_bug.cgi?id=13766): Minimal values for `.figure_size` were not documented. diff --git a/scilab/modules/graphics/src/c/Interaction.c b/scilab/modules/graphics/src/c/Interaction.c index 684b6fb..129c0fb 100644 --- a/scilab/modules/graphics/src/c/Interaction.c +++ b/scilab/modules/graphics/src/c/Interaction.c @@ -461,6 +461,7 @@ int Objmove (int iObjUID, double d[], int m, BOOL opt) /*---------------------------------------------------------------------------------*/ void showWindow(int iFigureUID) { - // @TODO: Call SwingView to raise window. + BOOL bTrue = TRUE; + setGraphicObjectProperty(iFigureUID, __GO_VISIBLE__, &bTrue, jni_bool, 1); }