@@ -1583,13 +1583,25 @@ void KDiff3App::recalcWordWrap(int nofVisibleColumns) // nofVisibleColumns is >=
1583
1583
sumOfLines += d3l.linesNeededForDisplay ;
1584
1584
}
1585
1585
1586
+ ProgressProxy pp;
1587
+ pp.setMaxNofSteps ( (m_bTripleDiff ? 6 : 4 ) );
1588
+ pp.setInformation (" Word wrap" ,false );
1586
1589
// Let every window calc how many lines will be needed.
1587
1590
if ( m_pDiffTextWindow1 )
1591
+ {
1588
1592
m_pDiffTextWindow1->recalcWordWrap (true ,0 ,nofVisibleColumns);
1593
+ pp.step ();
1594
+ }
1589
1595
if ( m_pDiffTextWindow2 )
1596
+ {
1590
1597
m_pDiffTextWindow2->recalcWordWrap (true ,0 ,nofVisibleColumns);
1598
+ pp.step ();
1599
+ }
1591
1600
if ( m_pDiffTextWindow3 )
1601
+ {
1592
1602
m_pDiffTextWindow3->recalcWordWrap (true ,0 ,nofVisibleColumns);
1603
+ pp.step ();
1604
+ }
1593
1605
1594
1606
sumOfLines=0 ;
1595
1607
for ( i=m_diff3LineList.begin (); i!=m_diff3LineList.end (); ++i )
@@ -1601,11 +1613,20 @@ void KDiff3App::recalcWordWrap(int nofVisibleColumns) // nofVisibleColumns is >=
1601
1613
1602
1614
// Finish the initialisation:
1603
1615
if ( m_pDiffTextWindow1 )
1616
+ {
1604
1617
m_pDiffTextWindow1->recalcWordWrap (true ,sumOfLines,nofVisibleColumns);
1618
+ pp.step ();
1619
+ }
1605
1620
if ( m_pDiffTextWindow2 )
1621
+ {
1606
1622
m_pDiffTextWindow2->recalcWordWrap (true ,sumOfLines,nofVisibleColumns);
1623
+ pp.step ();
1624
+ }
1607
1625
if ( m_pDiffTextWindow3 )
1626
+ {
1608
1627
m_pDiffTextWindow3->recalcWordWrap (true ,sumOfLines,nofVisibleColumns);
1628
+ pp.step ();
1629
+ }
1609
1630
1610
1631
m_neededLines = sumOfLines;
1611
1632
}
0 commit comments