Revision 3e29b8a0

View differences:

ide/org.omnetpp.sequencechart/src/org/omnetpp/sequencechart/widgets/SequenceChart.java
796 796
	    
797 797
	    if (!eventLog.isEmpty())
798 798
	        setViewportSimulationTimeRange(leftRightSimulationTimes);
799
	    
800
	    if(getViewportWidth() != 1)
801
	    	zoomToFit();
799 802
	}
800 803

  
801 804
	/**
......
1200 1203
        eventLogInput.runWithProgressMonitor(new Runnable() {
1201 1204
            public void run() {
1202 1205
                int padding = 20;
1203
                double firstTimelineCoordinate = sequenceChartFacade.getTimelineCoordinate(eventLog.getFirstEvent());
1204
                double lastTimelineCoordinate = sequenceChartFacade.getTimelineCoordinate(eventLog.getLastEvent());
1206
                double firstTimelineCoordinate;
1207
                double lastTimelineCoordinate;
1208
                if(getTimelineMode() == SequenceChart.TimelineMode.REAL_TIME) {
1209
                	 firstTimelineCoordinate = sequenceChartFacade.getTimelineCoordinate(eventLog.getFirstEventRealTime());
1210
                     lastTimelineCoordinate = sequenceChartFacade.getTimelineEventEndCoordinate(eventLog.getLastEventRealTime());
1211
                } else {
1212
                	 firstTimelineCoordinate = sequenceChartFacade.getTimelineCoordinate(eventLog.getFirstEvent());
1213
                     lastTimelineCoordinate = sequenceChartFacade.getTimelineEventEndCoordinate(eventLog.getLastEvent());
1214
                }
1215

  
1205 1216
                double timelineCoordinateDelta = lastTimelineCoordinate - firstTimelineCoordinate;
1217

  
1206 1218
                if (timelineCoordinateDelta == 0)
1207 1219
                    setPixelPerTimelineUnit(1);
1208 1220
                else
src/eventlog/sequencechartfacade.cc
954 954
void SequenceChartFacade::calculateCriticalPath() {
955 955
    long maxEarliestProcessingTime = 0;
956 956
    IEvent* maxEarliestProcessingTimeEvent;
957
    printf("bla1");
958 957
    for (IEvent *current = eventLog->getFirstEvent(); current; current = current->getNextEvent()) {
959 958
        simtime_t startTime = current->getSimulationTime();
960 959
        int moduleId = current->getModuleId();

Also available in: Unified diff