GraphicsMagick: MagickXColorBrowserWidget(): If mode_info.text i...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.22296.1669305072.1567.graphicsmagick-commit@lists.sourceforge.net>
changeset e45d44ad6810 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=e45d44ad6810
summary: MagickXColorBrowserWidget(): If mode_info.text is NULL, ignore event due to user pushing mode button.

diffstat:

 ChangeLog          |  3 +++
 magick/widget.c    |  2 ++
 www/Changelog.html |  2 ++
 3 files changed, 7 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r aa9d9744674a -r e45d44ad6810 ChangeLog
--- a/ChangeLog	Thu Nov 24 09:33:26 2022 -0600
+++ b/ChangeLog	Thu Nov 24 09:51:03 2022 -0600
@@ -1,5 +1,8 @@
 2022-11-24  Bob Friesenhahn  <[email protected]>
 
+	* magick/widget.c (MagickXColorBrowserWidget): If mode_info.text
+	is NULL, ignore event due to user pushing mode button.
+
 	* coders/heif.c (ReadMetadata): Also guard against profile name
 	being null.
 
diff -r aa9d9744674a -r e45d44ad6810 magick/widget.c
--- a/magick/widget.c	Thu Nov 24 09:33:26 2022 -0600
+++ b/magick/widget.c	Thu Nov 24 09:51:03 2022 -0600
@@ -2209,6 +2209,8 @@
             /*
               User pressed mode button.
             */
+            if (NULL == mode_info.text)
+              break;
             (void) strlcpy(reply_info.text,mode_info.text,MaxTextExtent);
             (void) strlcpy(primary_selection,reply_info.text,MaxTextExtent);
             (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id,
diff -r aa9d9744674a -r e45d44ad6810 www/Changelog.html
--- a/www/Changelog.html	Thu Nov 24 09:33:26 2022 -0600
+++ b/www/Changelog.html	Thu Nov 24 09:51:03 2022 -0600
@@ -40,6 +40,8 @@
 <p>2022-11-24  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul class="simple">
+<li><p>magick/widget.c (MagickXColorBrowserWidget): If mode_info.text
+is NULL, ignore event due to user pushing mode button.</p></li>
 <li><p>coders/heif.c (ReadMetadata): Also guard against profile name
 being null.</p></li>
 </ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.