From fbcb0ac256509d807e18c1909343ec883e3c4c1e Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 8 Jun 2015 12:40:11 -0400 Subject: [PATCH] VecGallery tweaks --- openbr/plugins/gallery/vec.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/openbr/plugins/gallery/vec.cpp b/openbr/plugins/gallery/vec.cpp index f69a414..13dc3ac 100644 --- a/openbr/plugins/gallery/vec.cpp +++ b/openbr/plugins/gallery/vec.cpp @@ -22,15 +22,15 @@ class vecGallery : public FileGallery ~vecGallery() { - if (mats.isEmpty()) - return; + if (mats.isEmpty()) + return; - writeOpen(); + writeOpen(); - // Write header - int count = mats.size(); - int size = width*height; - short temp = 0; + // Write header + int count = mats.size(); + int size = width*height; + short temp = 0; const size_t write1 = f.write((char*)&count,sizeof(count)); const size_t write2 = f.write((char*)&size,sizeof(size)); @@ -42,16 +42,16 @@ class vecGallery : public FileGallery for (int i=0; i