SVN commit 976103 by arieder: fix sage backend sometimes not showing plots, because it detects the tmp directory wrong M +5 -1 sagesession.cpp --- trunk/playground/edu/mathematik/src/backends/sage/sagesession.cpp #976102:976103 @@ -121,7 +121,11 @@ { kDebug()<<"received tmp dir information"; int index=out.indexOf("___TMP_DIR___" )+14; - m_tmpPath=out.mid( index, index-out.indexOf('\n',index ) ).trimmed(); + int endIndex=out.indexOf("\n", index); + if(endIndex==-1) + m_tmpPath=out.mid( index ).trimmed(); + else + m_tmpPath=out.mid( index, index-out.indexOf("\n",index) ).trimmed(); kDebug()<<"tmp path: "<