]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Fix warnings reported by clang
[features.git] / src / insets / InsetCaption.cpp
index 14baf86c5f34a4ea43d8d727669462c1e9c3eb23..65cddc2971a328a21aaa6652118d188558449646 100644 (file)
@@ -227,8 +227,7 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
                        bool varia = type != "LongTableNoNumber";
                        // check if the immediate parent inset allows caption variation
                        if (cur.depth() > 1) {
-                               if (&cur[cur.depth() - 2].inset())
-                                       varia = cur[cur.depth() - 2].inset().allowsCaptionVariation(type);
+                               varia = cur[cur.depth() - 2].inset().allowsCaptionVariation(type);
                        }
                        status.setEnabled(varia
                                          && buffer().params().documentClass().hasInsetLayout(