<br> I think I called delete all and then added 2 markers, after aprox 16 times things started getting very wierd. the markers started appearing in the code folding margin.<br>the allocatedMarkers = 0; fixed the issue, and it makes sense looking at the code.<br>
<br>-gedalia<br><br><br>On Thu, Apr 22, 2010 at 12:54 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Tue, 20 Apr 2010 13:20:21 -0400, Gedalia Pasternak <<a href="mailto:gedalia@gmail.com">gedalia@gmail.com</a>><br>
wrote:<br>
<div><div></div><div class="h5">> Not sure if this has been fixed in a recent build but I'm getting weird<br>
> behavior if I create and then delete lots of markers with<br>
> markerDeleteAll().<br>
> (I wind up with many markers in the code folding margin)<br>
><br>
> I think *allocatedMarkers *not being reset is the problem.<br>
><br>
> // Delete a marker from the text.<br>
> void QsciScintilla::markerDeleteAll(int mnr)<br>
> {<br>
> if (mnr <= MARKER_MAX)<br>
> {<br>
> if (mnr < 0){<br>
> SendScintilla(SCI_MARKERDELETEALL, -1);<br>
> * allocatedMarkers = 0;<br>
> * }<br>
> else if (allocatedMarkers & (1 << mnr))<br>
> SendScintilla(SCI_MARKERDELETEALL, mnr);<br>
> }<br>
> }<br>
><br>
> -Gedalia<br>
<br>
</div></div>allocatedMarkers is related to the definition of marker numbers and not<br>
individual markers so I don't see how this makes any difference.<br>
<br>
Have you got a test case?<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------------------<br>cel: 917.776.8346 AIM: gedaliap<br><a href="http://www.gedalia.net">http://www.gedalia.net</a><br>
---------------------------------------------------------------<br>Fight Entropy!!! Fight Entropy!!! Figth Etnropy! !<br>iFgth Etnrop!y ! giFth tErno!py ! giFt htrEno!p y! --- Well maybe<br>not...<br>