From 1feb0121c9f89097b4f7a3be86b172e65f5a5d94 Mon Sep 17 00:00:00 2001
From: Paul Wolneykien <manowar@altlinux.ru>
Date: Tue, 1 Nov 2011 14:26:42 +0400
Subject: [PATCH] Fix the reading of the EPSF PS size and length

Fix the reading of the EPSF PS size and length in the PS_image()
function. Get the double number via string conversion first, same way
as it is done in the PS_ImageData() function.
---
 scribus/scribus/pslib.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scribus/scribus/pslib.cpp b/scribus/scribus/pslib.cpp
index e7ce466..5d71759 100644
--- a/scribus/scribus/pslib.cpp
+++ b/scribus/scribus/pslib.cpp
@@ -1531,8 +1531,8 @@ bool PSLib::PS_image(PageItem *c, double x, double y, QString fn, double scalex,
 					if (getDouble(QString(tmp.mid(0, 4)), true) == 0xC5D0D3C6)
 					{
 						char* data = tmp.data();
-						uint startPos = getDouble(tmp.mid(4, 4), false);
-						uint length = getDouble(tmp.mid(8, 4), false);
+						uint startPos = getDouble(QString(tmp.mid(4, 4)), false);
+						uint length = getDouble(QString(tmp.mid(8, 4)), false);
 						PutStream(data+startPos, length, false);
 					}
 					else
-- 
1.7.3.3

