~ubuntu-branches/ubuntu/natty/xmedcon/natty

« back to all changes in this revision

Viewing changes to source/m-dicm.c

  • Committer: Bazaar Package Importer
  • Author(s): Roland Marcus Rutschmann
  • Date: 2008-03-20 16:30:00 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080320163000-tvridqxpeahbkax8
Tags: 0.10.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *                - Mosaic support     - Roland Marcus Rutschmann          *
19
19
 *                                                                         *
20
20
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
 
/* $Id: m-dicm.c,v 1.180 2007/10/22 19:47:53 enlf Exp $
 
21
/* $Id: m-dicm.c,v 1.182 2008/01/23 21:28:35 enlf Exp $
22
22
 */
23
23
 
24
24
/*
25
 
   Copyright (C) 1997-2007 by Erik Nolf
 
25
   Copyright (C) 1997-2008 by Erik Nolf
26
26
 
27
27
   This program is free software; you can redistribute it and/or modify it
28
28
   under the terms of the GNU General Public License as published by the
226
226
          if ((img == 0) && (f == 0)) 
227
227
            fi->pat_slice_orient = MdcTryPatSliceOrient(fi->pat_orient);
228
228
          if (fi->pat_slice_orient != MDC_UNKNOWN) {
229
 
            MdcFillImgPos(fi,img,img%fi->dim[3],0.0);
 
229
            MdcFillImgPos(fi,img,fi->dim[3]==0 ? 0 : img%fi->dim[3],0.0);
230
230
            MdcFillImgOrient(fi,img); 
231
231
          }
232
232
        }