Commit 83bdf5cf authored by David Faure's avatar David Faure
Browse files

Make kmplot_part embeddable into konqueror again, fix off by one assert.

* The library name if kmplotpart, not libkmplotpart.
* The -1 was going out of bounds when called with XSection which is 0

Testcase: konqueror <directory_with_a_fkt_file>, right click on .fkt
file, Preview In, KmPlotPart
parent 0776fbb1
......@@ -66,5 +66,5 @@ Name[zh_CN]=KmPlot 组件
Name[zh_TW]=KmPlotPart
MimeType=application/x-kmplot;
X-KDE-ServiceTypes=KParts/ReadOnlyPart
X-KDE-Library=libkmplotpart
X-KDE-Library=kmplotpart
Type=Service
......@@ -4211,7 +4211,7 @@ void View::setStatusBar( const QString & t, StatusBarSection section )
if ( m_readonly) //if KmPlot is shown as a KPart with e.g Konqueror, it is only possible to change the status bar in one way: to call setStatusBarText
{
m_statusBarText[ section - 1 ] = text;
m_statusBarText[ section ] = text;
QString text;
for ( int i = 0; i < 4; ++i )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment