sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.peccommon/src/com/nokia/carbide/cpp/pi/peccommon/PecCommonTraceGraph.java
--- a/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.peccommon/src/com/nokia/carbide/cpp/pi/peccommon/PecCommonTraceGraph.java Wed Jun 23 14:49:59 2010 +0300
+++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.peccommon/src/com/nokia/carbide/cpp/pi/peccommon/PecCommonTraceGraph.java Wed Jun 23 15:05:09 2010 +0300
@@ -93,6 +93,9 @@
/** GUI manager has knowledge off all IpcTraceGraphs; can broadcast some of the events */
private PecCommonGuiManager guiManager;
+
+ private int lastEdgeX;
+ private int paintCount;
/**
* Constructor
@@ -210,6 +213,15 @@
if (sectionHeight > 60f){ //only draw the label if the section has a decent height
int edgeX = ((Viewport) panel.getParent()).getViewLocation().x;
+ if (lastEdgeX != edgeX && paintCount < 1 && guiManager != null) {
+ paintCount++;
+ guiManager.selectionAreaChanged(PIPageEditor
+ .currentPageEditor().getStartTime(), PIPageEditor
+ .currentPageEditor().getEndTime());
+ } else {
+ paintCount = 0;
+ }
+ lastEdgeX = edgeX;
for (int i = 0; i < drawSeries.size(); i++) {
int seriesIdx = drawSeries.get(i);