[chronojump] RaceAnalyzer capture tab graphs do not show grid if we did not arrive to any segment mark
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RaceAnalyzer capture tab graphs do not show grid if we did not arrive to any segment mark
- Date: Fri, 11 Feb 2022 15:12:09 +0000 (UTC)
commit b8f26dec0a7729b90bdae57e2d9d91068ab39214
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Feb 11 16:11:48 2022 +0100
RaceAnalyzer capture tab graphs do not show grid if we did not arrive to any segment mark
src/gui/cairo/raceAnalyzer.cs | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/cairo/raceAnalyzer.cs b/src/gui/cairo/raceAnalyzer.cs
index 1347c37c9..77e1b898f 100644
--- a/src/gui/cairo/raceAnalyzer.cs
+++ b/src/gui/cairo/raceAnalyzer.cs
@@ -108,7 +108,10 @@ public class CairoGraphRaceAnalyzer : CairoXY
if(maxValuesChanged || forceRedraw)
{
if(verticalLinesUs_2l.Count() == 0)
- paintGrid(gridTypes.BOTH, true);
+ {
+ //paintGrid(gridTypes.BOTH, true);
+ // do not show grid if we do not pass any distance mark
+ }
else {
//horizontal
if(verticalLinesUs_2l.Count() > 0 && useListOfDoublesOnY)
@@ -153,8 +156,9 @@ public class CairoGraphRaceAnalyzer : CairoXY
printXAxisTopText();
}
}
- else //maybe we have not arrived to any segment
- paintGridNiceAutoValues (g, minX, absoluteMaxX, minY, absoluteMaxY,
5, gridTypes.VERTICALLINES, textHeight-3);
+ //else //maybe we have not arrived to any segment
+ // paintGridNiceAutoValues (g, minX, absoluteMaxX, minY, absoluteMaxY,
5, gridTypes.VERTICALLINES, textHeight-3);
+ // do not show grid if we do not pass any distance mark
}
paintAxis();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]