]> git.lyx.org Git - lyx.git/blobdiff - src/ErrorList.cpp
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / ErrorList.cpp
index bc007da2ddc5d8d060f5fd77cc6636eb59eef9e5..7022c7bcf50a6ca59f5d41c4d3f2c4b1ade26953 100644 (file)
@@ -16,15 +16,23 @@ using namespace std;
 
 namespace lyx {
 
+
+ErrorItem::ErrorItem(docstring const & error_, docstring const & description_,
+                     TextEntry start_, TextEntry end_, Buffer const * buffer_)
+       : error(error_), description(description_), start(start_), end(end_),
+         buffer(buffer_)
+{}
+
+
 ErrorItem::ErrorItem(docstring const & error_, docstring const & description_,
-                    int par_id_, pos_type pos_start_, pos_type pos_end_)
-       : error(error_), description(description_), par_id(par_id_),
-         pos_start(pos_start_),  pos_end(pos_end_)
+                     Buffer const * buffer_)
+       : error(error_), description(description_), start(TexRow::text_none),
+         end(TexRow::text_none), buffer(buffer_)
 {}
 
 
 ErrorItem::ErrorItem()
-       : par_id(-1), pos_start(0), pos_end(0)
+       : start(TexRow::text_none), end(TexRow::text_none), buffer(nullptr)
 {}