Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 8334 → Rev 8335

/branches/Version13x/Scribus/scribus/mspinbox.cpp
83,7 → 83,7
if (s>=0 && s <=unitGetMaxIndex())
{
Width=s;
Decimals=static_cast<int>(pow(10, s));
Decimals=static_cast<int>(pow(10.0, s));
}
else
{
/branches/Version13x/Scribus/scribus/scpainterex_gdi.cpp
909,7 → 909,7
 
clipBoxWidth = rect.width();
clipBoxHeight = rect.height();
maxDim = sqrt( clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight ) * 2;
maxDim = sqrt( (double) (clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight) ) * 2;
if ( maxDim <= 0 )
return;
 
1091,7 → 1091,7
 
clipBoxWidth = rect.width();
clipBoxHeight = rect.height();
maxDim = sqrt( clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight ) * 2;
maxDim = sqrt( (double) (clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight) ) * 2;
if ( maxDim <= 0 ) return;
 
x1 = m_matrix.dx() + gradient.origin().x() * m_matrix.m11();
1212,7 → 1212,7
 
clipBoxWidth = rect.width();
clipBoxHeight = rect.height();
maxDim = sqrt( clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight ) * 2;
maxDim = sqrt( (double) (clipBoxWidth * clipBoxWidth + clipBoxHeight * clipBoxHeight) ) * 2;
if ( maxDim <= 0 ) return;
 
FPoint pc( gradient.origin().x(), gradient.origin().y() );
/branches/Version13x/Scribus/scribus/fileunzip.cpp
108,7 → 108,7
{
FILE* fout = NULL;
#if defined(_WIN32) && defined(HAVE_UNICODE)
fout = _wfopen(filename.ucs2(), mode.ucs2());
fout = _wfopen((const wchar_t*) filename.ucs2(), (const wchar_t*) mode.ucs2());
#else
QCString fname = filename.local8Bit();
QCString fmode = mode.local8Bit();
152,7 → 152,7
{
int ret=0;
#if defined(_WIN32) && defined(HAVE_UNICODE)
ret = _wmkdir(dirname.ucs2());
ret = _wmkdir((const wchar_t*) dirname.ucs2());
#elif defined(_WIN32)
QCString cdir = dirname.local8Bit();
ret = _mkdir(cdir.data());
329,7 → 329,7
 
ut.actime=ut.modtime=mktime(&newdate);
#if defined(_WIN32) && defined(HAVE_UNICODE)
_wutime(filename.ucs2(), &ut);
_wutime((const wchar_t*) filename.ucs2(), &ut);
#else
QCString fname = filename.local8Bit();
utime(fname.data(), &ut);
/branches/Version13x/Scribus/scribus/scpaths.cpp
295,7 → 295,7
DWORD result = GetTempPathW(1024, wTempPath);
if ( result )
{
tempPath = QString::fromUcs2(wTempPath);
tempPath = QString::fromUcs2((const unsigned short*) wTempPath);
tempPath.replace( '\\', '/' );
tempPath += "/";
// GetTempPath may return Windows directory, better not use this one