From b850ef000c0a7aa22cc8e2011c710e01a1687d04 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 10 Oct 2011 19:42:59 +0000 Subject: Fix some kdeedu build problems git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1258254 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalzium/src/spectrumviewimpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kalzium/src') diff --git a/kalzium/src/spectrumviewimpl.cpp b/kalzium/src/spectrumviewimpl.cpp index c4a5617a..826c008b 100644 --- a/kalzium/src/spectrumviewimpl.cpp +++ b/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 ) ) + TQPixmap swpm = m_spectrumWidget->pixmap(); + if ( !exporter->saveAsImage( &swpm, fileName ) ) KMessageBox::error( this, i18n( "The spectrum could not be saved" ), i18n( "Image Could Not Be Saved") ); } delete exporter; -- cgit v1.2.1