On Tue, 20 Apr 2010 13:20:21 -0400, Gedalia Pasternak <[email protected]> wrote: > Not sure if this has been fixed in a recent build but I'm getting weird > behavior if I create and then delete lots of markers with > markerDeleteAll(). > (I wind up with many markers in the code folding margin) > > I think *allocatedMarkers *not being reset is the problem. > > // Delete a marker from the text. > void QsciScintilla::markerDeleteAll(int mnr) > { > if (mnr <= MARKER_MAX) > { > if (mnr < 0){ > SendScintilla(SCI_MARKERDELETEALL, -1); > * allocatedMarkers = 0; > * } > else if (allocatedMarkers & (1 << mnr)) > SendScintilla(SCI_MARKERDELETEALL, mnr); > } > } > > -Gedalia
allocatedMarkers is related to the definition of marker numbers and not individual markers so I don't see how this makes any difference. Have you got a test case? Phil _______________________________________________ QScintilla mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
