From 85d57079c33aa2ce70136b197812ee93caf70809 Mon Sep 17 00:00:00 2001 From: caotto Date: Thu, 17 Jan 2013 15:03:50 -0500 Subject: [PATCH] Fix a bug in memGallery::readBlock --- sdk/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/plugins/gallery.cpp b/sdk/plugins/gallery.cpp index d0f954b..a90320c 100644 --- a/sdk/plugins/gallery.cpp +++ b/sdk/plugins/gallery.cpp @@ -262,7 +262,7 @@ class memGallery : public Gallery TemplateList templates = MemoryGalleries::galleries[file].mid(block*Globals->blockSize, Globals->blockSize); *done = (templates.size() < Globals->blockSize); - block = done ? 0 : block+1; + block = *done ? 0 : block+1; return templates; } -- libgit2 0.21.4