------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=59291 ariya kde org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From ariya kde org 2005-01-31 23:45 ------- CVS commit by ariya: prevent KFontAction to annoy Fontconfig, this will fix the crash when starting from a template BUG: 59291 M +14 -1 kspread_view.cc 1.801 --- koffice/kspread/kspread_view.cc #1.800:1.801 @ -58,4 +58,5 @ #include #include +#include #include #include @ -1439,6 +1440,18 @ void ViewPrivate::updateButton( KSpreadC toolbarLock = TRUE; + // workaround for bug #59291 (crash upon starting from template) + // certain Qt and Fontconfig combination fail miserably if can not + // find the font name (e.g. not installed in the system) + QStringList fontList; + KFontChooser::getFontList( fontList, 0 ); + QString fontFamily = cell->textFontFamily( column,row ); + for ( QStringList::Iterator it = fontList.begin(); it != fontList.end(); ++it ) + if ((*it).lower() == fontFamily.lower()) + { + actions->selectFont->setFont( fontFamily ); + break; + } + actions->selectFontSize->setFontSize( cell->textFontSize( column, row ) ); - actions->selectFont->setFont( cell->textFontFamily( column,row ) ); actions->bold->setChecked( cell->textFontBold( column, row ) ); actions->italic->setChecked( cell->textFontItalic( column, row) );