Version: (using KDE Devel) Installed from: Compiled sources OS: Linux The "select font" dialog show a slider with max value 128, and the list below is max 64. Them should have the same value instead!
Created attachment 22072 [details] "font select" dialog size value problem
possible patch Index: kfontchooser.cpp =================================================================== --- kfontchooser.cpp (revision 736512) +++ kfontchooser.cpp (working copy) @@ -426,7 +426,7 @@ 16, 17, 18, 19, 20, 22, 24, 26, 28, 32, 48, 64, - 0 + 128 }; for(int i = 0; c[i]; ++i) {
> for(int i = 0; c[i]; ++i) The end condition c[i] indicates that the array should end with a zero, otherwise the loop will go into unknown territories (out of the array)...
Ok for the 0, my bad. In fact it would be better to have: static const int c[] = { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 32, 48, 64, 72, 80, 96, 128, 0 };
Ok, this work. :-)
SVN commit 737628 by annma: the list should have the same maximum as the slider BUG:152349 M +2 -1 kfontchooser.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=737628