Skip to content

Commit

Permalink
Fixing crash in texture viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
imccown committed Feb 16, 2015
1 parent 11f7493 commit 9e55e37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,6 @@ $RECYCLE.BIN/
*.pso
*.o
Dissector/Dissector (Restored) 09-22-2014 20.32.cpp
DissectorGUI/textureviewerfast.cpp.bY6100
DissectorGUI/textureviewerfast.cpp.xY6100
bin/cache/pingme.txt
3 changes: 3 additions & 0 deletions DissectorGUI/textureviewerfast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ void TextureViewerFast::slotContextAction(QAction* iAction)

void TextureViewerFast::UpdateLocalPos( QPoint localPos )
{
if( !mImageData )
return;

QPoint pos = GetTexturePos( localPos );
size_t pixelSize = Dissector::GetPixelSize( mPixelType );
char* pixelPtr = mImageData + (pixelSize * ( pos.x() + (pos.y() * mImageSizeX) ) );
Expand Down
Binary file modified bin/DissectorGUI.exe
Binary file not shown.

0 comments on commit 9e55e37

Please sign in to comment.