mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 02:38:54 -04:00
15 lines
651 B
C++
15 lines
651 B
C++
$NetBSD: patch-kalzium_src_spectrumviewimpl.cpp,v 1.1 2012/06/25 11:31:20 joerg Exp $
|
|
|
|
--- kalzium/src/spectrumviewimpl.cpp.orig 2012-06-18 20:15:46.000000000 +0000
|
|
+++ kalzium/src/spectrumviewimpl.cpp
|
|
@@ -39,7 +39,8 @@ void SpectrumViewImpl::slotExportAsImage
|
|
this, i18n( "Save Spectrum" ) );
|
|
if( !fileName.isEmpty() )
|
|
{
|
|
- if ( !exporter->saveAsImage( &m_spectrumWidget->pixmap(), fileName ) )
|
|
+ QPixmap p(m_spectrumWidget->pixmap());
|
|
+ if ( !exporter->saveAsImage( &p, fileName ) )
|
|
KMessageBox::error( this, i18n( "The spectrum could not be saved" ), i18n( "Image Could Not Be Saved") );
|
|
}
|
|
delete exporter;
|