]> git.lyx.org Git - lyx.git/blobdiff - src/DepTable.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / DepTable.C
index 865c6250b3df4d35c408c92c4a0888ed7b9f03ab..2718bcacf934fb4d4565f341fa376f4bcb95ebe4 100644 (file)
@@ -38,7 +38,7 @@ using lyx::support::sum;
 using std::endl;
 using std::flush;
 using std::getline;
-
+using std::string;
 using std::ofstream;
 using std::ifstream;
 
@@ -87,12 +87,12 @@ void DepTable::update()
                if (stat(itr->first.c_str(), &f_info) == 0) {
                        if (di.mtime_cur == f_info.st_mtime) {
                                di.crc_prev = di.crc_cur;
-                               lyxerr[Debug::DEPEND] << itr->first << " same mtime";
+                               lyxerr[Debug::DEPEND] << itr->first << " same mtime" << endl;
                        } else {
                                di.crc_prev = di.crc_cur;
-                               lyxerr[Debug::DEPEND] << itr->first << " CRC... ";
+                               lyxerr[Debug::DEPEND] << itr->first << " CRC... " << flush;
                                di.crc_cur = sum(itr->first);
-                               lyxerr[Debug::DEPEND] << "done";
+                               lyxerr[Debug::DEPEND] << "done" << endl;
                        }
                } else {
                        // file doesn't exist