<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/fxplot/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/fxplot/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 08 Mar 2006 16:57:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fxplot/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>flags variable not set correctly</title><link>https://sourceforge.net/p/fxplot/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When flags such as legend and grid are turned off, the&lt;br /&gt;
logic is not quite right.  You need to logically AND&lt;br /&gt;
the negative to turn off, and logically OR the value to&lt;br /&gt;
turn on.  Here are the changes:&lt;/p&gt;
&lt;p&gt;/// Set the legend visible.&lt;/p&gt;
&lt;p&gt;void setLegend(FXbool on = TRUE){&lt;/p&gt;
&lt;p&gt;if(on) flags |= LegendShown;&lt;/p&gt;
&lt;p&gt;else flags &amp;amp;= ~LegendShown;&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;/// Set the grid visible  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;void setGrid(FXbool on = TRUE){&lt;/p&gt;
&lt;p&gt;if(on) flags |= GridShown;&lt;/p&gt;
&lt;p&gt;else flags &amp;amp;= ~GridShown;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Henry</dc:creator><pubDate>Wed, 08 Mar 2006 16:57:29 -0000</pubDate><guid>https://sourceforge.net339b33b1212887604c807def8fd938a43bbc3db0</guid></item></channel></rss>