X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayout.cpp;h=e368f23bbda0e821d3928b0f58538e5290a9e577;hb=51ac7d895cc7a9c4ad91131d0b4734395366d04b;hp=c874f88efc12393bd817d324b1f17598c88b288a;hpb=f401ce5d29cd83ace9d1925cc8c24ceb7a6a41e6;p=lyx.git diff --git a/src/Layout.cpp b/src/Layout.cpp index c874f88efc..e368f23bbd 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -830,6 +830,16 @@ docstring const & Layout::depends_on() const } +bool Layout::operator==(Layout const & rhs) const +{ + // This is enough for the applications we actually make, + // at least at the moment. But we could check more. + return name() == rhs.name() + && latexname() == rhs.latexname() + && latextype == rhs.latextype; +} + + Layout * Layout::forCaption() { Layout * lay = new Layout();