Date: Tue, 18 Sep 2012 23:57:11 +0000 (UTC) From: Max Brazhnikov <makc@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r304475 - in head/graphics/kpovmodeler: . files Message-ID: <201209182357.q8INvBta086200@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: makc Date: Tue Sep 18 23:57:11 2012 New Revision: 304475 URL: http://svn.freebsd.org/changeset/ports/304475 Log: Add patch to fix saving rendered image Remove Makefile header Added: head/graphics/kpovmodeler/files/ head/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp (contents, props changed) Modified: head/graphics/kpovmodeler/Makefile (contents, props changed) Modified: head/graphics/kpovmodeler/Makefile ============================================================================== --- head/graphics/kpovmodeler/Makefile Tue Sep 18 23:34:46 2012 (r304474) +++ head/graphics/kpovmodeler/Makefile Tue Sep 18 23:57:11 2012 (r304475) @@ -1,13 +1,8 @@ -# New ports collection makefile for: kpovmodeler -# Date created: 2008-07-31 -# Whom: Max Brazhnikov <makc@issp.ac.ru> -# # $FreeBSD$ -# PORTNAME= kpovmodeler PORTVERSION= ${APP_VER}.${EXTRA_VER} -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${EXTRA_VER}/src/extragear @@ -15,7 +10,7 @@ DISTNAME= ${PORTNAME}-${APP_VER}-kde${EX DIST_SUBDIR= KDE/extragear MAINTAINER= kde@FreeBSD.org -COMMENT= A KDE editor/frontend for Povray +COMMENT= KDE editor/frontend for Povray RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray-meta Added: head/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp Tue Sep 18 23:57:11 2012 (r304475) @@ -0,0 +1,47 @@ +--- ./pmpovraywidget.cpp.orig 2009-08-31 15:13:57.000000000 +0000 ++++ ./pmpovraywidget.cpp 2012-08-08 22:00:05.311318130 +0000 +@@ -237,12 +237,6 @@ + QFile* file = 0; + bool ok = true; + +- if( !s_imageFormatsRegistered ) +- { +- +- s_imageFormatsRegistered = true; +- } +- + KUrl url = KFileDialog::getSaveUrl( KUrl( ), KImageIO::pattern( KImageIO::Writing ) ); + if( url.isEmpty( ) ) + return; +@@ -255,17 +249,7 @@ + return; + } + +-#ifdef __GNUC__ +-#warning is this really needed? +-#endif +- QString suffix = url.fileName().toUpper(); +- if (suffix.lastIndexOf('.') >= 0) +- suffix = suffix.mid(suffix.lastIndexOf('.')); +- +- QString format; +- +- if (QImageWriter::supportedImageFormats().contains(suffix.toLatin1())) +- format = suffix; ++ QString format = url.fileName().section('.', -1); + + if( format.isEmpty( ) ) + { +@@ -274,12 +258,6 @@ + return; + } + +- if( !KImageIO::types( ).contains(format) ) +- { +- KMessageBox::error( this, i18n( "Format is not supported for writing." ) ); +- return; +- } +- + if( url.isLocalFile( ) ) + { + // Local file
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209182357.q8INvBta086200>