Summary: | [REGRESSION] kompare: setting tabwidth to anything < 4 shows only the first level of indentation | ||
---|---|---|---|
Product: | [Applications] kompare | Reporter: | esigra |
Component: | viewpart | Assignee: | Kompare developers <kompare-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, esigra, johu |
Priority: | NOR | ||
Version: | 4.0.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | KDE SC 4.8.1 / Kompare 4.1.1 |
Description
esigra
2010-09-12 22:50:17 UTC
Ping Hmmm, the KompareListViewLineItem::expandTabs routine uses the following formula: QString(tabstop-((startPos+index)%4),' ') which looks very wrong to me. The hardcoded "4" does not make any sense whatsoever. The regression was introduced by this commit: http://websvn.kde.org/?view=revision&revision=1026032 by je4d. The correct formula is: QString(tabstop-((startPos+index)%tabstop),' ') SVN commit 1278831 by kkofler: Kompare: Fix nonsensical tab expansion formula introduced by commit 1026032. FIXED-IN: 4.8.1 M +1 -1 komparelistview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1278831 SVN commit 1278833 by kkofler: Kompare: Fix nonsensical tab expansion formula introduced by commit 1026032. Backport revision 1278831 from trunk. M +1 -1 komparelistview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1278833 Thank you! |