]> git.lyx.org Git - lyx.git/commitdiff
Initialize properly InsetTabular members in constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:23:27 +0000 (17:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:23:27 +0000 (17:23 +0200)
Found by Coverity

src/insets/InsetTabular.cpp

index c88888aa79bbb11b9d90ef72cf3032de06c447b4..b5344df2a415deee7c9ecbc4526b5ae24e708cc5 100644 (file)
@@ -3474,7 +3474,8 @@ InsetTabular::InsetTabular(Buffer * buf, row_type rows,
 
 
 InsetTabular::InsetTabular(InsetTabular const & tab)
-       : Inset(tab), tabular(tab.tabular)
+       : Inset(tab), tabular(tab.tabular),
+         first_visible_cell_(0), offset_valign_(0), rowselect_(false), colselect_(false)
 {
 }