[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/edu/mathematik/src/backends/sage
From: Alexander Rieder <alexanderrieder () gmail ! com>
Date: 2009-05-31 22:00:51
Message-ID: 1243807251.810931.10039.nullmailer () svn ! kde ! org
[Download RAW message or body]
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: "<<m_tmpPath;
m_dirWatch.addDir( m_tmpPath, KDirWatch::WatchFiles );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic