fix issue 303

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@355 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-05-26 07:54:34 +00:00
parent 61447c655e
commit 289db34827
3 changed files with 6 additions and 2 deletions

View File

@ -223,6 +223,7 @@ int main(int argc, char **argv) {
bool is_tiff = fileFormatIsTiff(fp);
fclose(fp);
Pix *pix;
if (is_tiff) {
for (; (pix = pixReadTiff(argv[1], page)) != NULL; ++page) {
if (page > 0)

View File

@ -2,14 +2,14 @@
// Author: <rays@google.com> (Ray Smith)
//
#include "svshowim.h"
#include "scrollview.h"
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif
#ifdef HAVE_LIBLEPT
#include "allheaders.h"
#endif
#include "svshowim.h"
#include "scrollview.h"
// Override of a tesseract function to display an image in a window.
// This function redirects the display to ScrollView instead of the

View File

@ -29,6 +29,9 @@ const int kSvPort = 8461;
const int kMaxMsgSize = 4096;
const int kMaxIntPairSize = 45; // Holds %d,%d, for upto 64 bit.
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif
#include "scrollview.h"
#include <stdarg.h>