|
|
|
@ -458,7 +458,7 @@ void KisRawImport::slotReceivedStdout(KProcess *, char *buffer, int buflen)
|
|
|
|
|
//kdDebug(41008) << "stdout received " << buflen << " bytes on stdout.\n";
|
|
|
|
|
//kdDebug(41008) << TQString::fromAscii(buffer, buflen) << "\n";
|
|
|
|
|
int oldSize = m_data->size();
|
|
|
|
|
m_data->resize(oldSize + buflen, TQGArray::SpeedOptim);
|
|
|
|
|
m_data->tqresize(oldSize + buflen, TQGArray::SpeedOptim);
|
|
|
|
|
memcpy(m_data->data() + oldSize, buffer, buflen);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -577,7 +577,7 @@ TQSize KisRawImport::determineSize(TQ_UINT32& startOfImageData)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQString size = TQStringList::split("\n", TQString::fromAscii(m_data->data(), i))[1];
|
|
|
|
|
kdDebug(41008) << "Header: " << TQString::fromAscii(m_data->data(), i) << "\n";
|
|
|
|
|
kdDebug(41008) << "Header: " << TQString(TQString::fromAscii(m_data->data(), i)) << "\n";
|
|
|
|
|
TQStringList sizelist = TQStringList::split(" ", size);
|
|
|
|
|
TQ_INT32 w = sizelist[0].toInt();
|
|
|
|
|
TQ_INT32 h = sizelist[1].toInt();
|
|
|
|
|