Bug 1023019 - Make the canvas graphs plot the data underneath the selection, markers and cursor, r=pbrosset

This commit is contained in:
Victor Porof 2014-06-10 10:55:29 -04:00
Родитель ebb1f337da
Коммит 1bf902d8ce
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -501,15 +501,16 @@ AbstractCanvasGraph.prototype = {
let ctx = this._ctx; let ctx = this._ctx;
ctx.clearRect(0, 0, this._width, this._height); ctx.clearRect(0, 0, this._width, this._height);
// Draw the grpah underneath the cursor and selection.
if (this.hasData()) {
ctx.drawImage(this._cachedGraphImage, 0, 0, this._width, this._height);
}
if (this.hasCursor()) { if (this.hasCursor()) {
this._drawCliphead(); this._drawCliphead();
} }
if (this.hasSelection() || this.hasSelectionInProgress()) { if (this.hasSelection() || this.hasSelectionInProgress()) {
this._drawSelection(); this._drawSelection();
} }
if (this.hasData()) {
ctx.drawImage(this._cachedGraphImage, 0, 0, this._width, this._height);
}
this._shouldRedraw = false; this._shouldRedraw = false;
}, },