[Paraview] minor bug - wrong file type selected

Paul Edwards paul.m.edwards at gmail.com
Thu Jun 19 06:50:38 EDT 2008


Here is a fix for this bug - http://www.paraview.org/Bug/view.php?id=7029

8<------------------------------------------
Index: Qt/Core/pqReaderFactory.cxx
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/Qt/Core/pqReaderFactory.cxx,v
retrieving revision 1.18
diff -r1.18 pqReaderFactory.cxx
104,106c104,114
<     foreach(QString ext, exts)
<       {
<       if (this->Extensions.contains(ext))
---
>     QStringList::iterator it = exts.end();
>     // iterate backwards to get last extension name
>     // (in case someone converts without removing
>     //  previous extension)
>     while(it != exts.begin())
>       {
>       --it;
>       bool ok;
>       it->toInt(&ok);
>       // ignore sections with
>       if(!ok)
108c116
<         found = true;
---
>         found = this->Extensions.contains(*it);
------------------------------------------>8

I've attached a simple file that can be used for testing.

Regards,
Paul

2008/5/15 Moreland, Kenneth <kmorel at sandia.gov>:
> I submitted a bug report.
>
>
>
> http://www.paraview.org/Bug/view.php?id=7029
>
>
>
> -Ken
>
>
>
> ________________________________
>
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
> On Behalf Of Paul Edwards
> Sent: Thursday, May 15, 2008 10:08 AM
> To: paraview at paraview.org
> Subject: [Paraview] minor bug - wrong file type selected
>
>
>
> For a file called "file.xyz.vtk" ParaView will use the plot3d reader - I
> would have expected it to be the vtk file format.  This is only a minor bug
> as I should not have been so lazy when converting files!... but it had me
> confused for a while.
>
> Regards,
> Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple.vtk.xyz
Type: chemical/x-pdb
Size: 195 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080619/7d9d6dbf/attachment-0001.pdb>


More information about the ParaView mailing list