svn path=/trunk/kdenlive/; revision=4713
const bool &unscaled, const uint &accelFactor) const
{
qDebug() << "Histogram rect size is: " << paradeSize.width() << "/" << paradeSize.height();
- if (paradeSize.height() <= 0 || paradeSize.width() <= 0) {
+ if (paradeSize.height() <= 0 || paradeSize.width() <= 0 || image.width() <= 0 || image.height() <= 0) {
return QImage();
}
const int nParts = (drawY ? 1 : 0) + (drawR ? 1 : 0) + (drawG ? 1 : 0) + (drawB ? 1 : 0);
- if (nParts == 0 || byteCount == 0) {
+ if (nParts == 0) {
// Nothing to draw
return QImage();
}
{
Q_ASSERT(accelFactor >= 1);
- if (paradeSize.width() <= 0 || paradeSize.height() <= 0) {
+ if (paradeSize.width() <= 0 || paradeSize.height() <= 0 || image.width() <= 0 || image.height() <= 0) {
return QImage();
} else {
const VectorscopeGenerator::PaintMode &paintMode, const bool&,
const uint &accelFactor) const
{
- if (vectorscopeSize.width() <= 0 || vectorscopeSize.height() <= 0) {
+ if (vectorscopeSize.width() <= 0 || vectorscopeSize.height() <= 0 || image.width() <= 0 || image.height() <= 0) {
// Invalid size
return QImage();
}
QImage wave(waveformSize, QImage::Format_ARGB32);
- if (waveformSize.width() <= 0 || waveformSize.height() <= 0) {
+ if (waveformSize.width() <= 0 || waveformSize.height() <= 0 || image.width() <= 0 || image.height() <= 0) {
return QImage();
} else {