]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
Revert "Fix display of a math hull inset in a tight inset"
[lyx.git] / src / Row.cpp
index 86b4e5014ca80dd69a4f63c8eb459f161107c242..b85ef3d18b05bfb853efe9ddd911c33ac9dcec89 100644 (file)
@@ -510,15 +510,14 @@ void Row::addMarginSpace(pos_type const pos, int const width,
 
 void Row::push_back(Row::Element const & e)
 {
-       dim_.wid += e.dim.wid + ((e.type == INSET) ? e.extra : 0);
+       dim_.wid += e.dim.wid;
        elements_.push_back(e);
 }
 
 
 void Row::pop_back()
 {
-       Element const & e = elements_.back();
-       dim_.wid -= e.dim.wid + ((e.type == INSET) ? e.extra : 0);
+       dim_.wid -= elements_.back().dim.wid;
        elements_.pop_back();
 }