Index: /branches/eam_branches/ipp-20130904/psphot/src/psphotRoughClass.c
===================================================================
--- /branches/eam_branches/ipp-20130904/psphot/src/psphotRoughClass.c	(revision 36304)
+++ /branches/eam_branches/ipp-20130904/psphot/src/psphotRoughClass.c	(revision 36305)
@@ -87,5 +87,5 @@
     if (NX > NY) {
 	NXuse = ScaleForClump;
-	NYuse = (int) (ScaleForClump * (NY / NX) + 0.5);
+	NYuse = (int) (ScaleForClump * (NX / NY) + 0.5);
     } else {
 	NYuse = ScaleForClump;
