Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4990cd2
)
Bos #24226, pb #3: Clipping faces texture is lost.
author
jfa
<jfa@opencascade.com>
Tue, 4 May 2021 13:41:10 +0000
(16:41 +0300)
committer
jfa
<jfa@opencascade.com>
Tue, 4 May 2021 13:41:10 +0000
(16:41 +0300)
src/OCCViewer/OCCViewer_Utilities.cxx
patch
|
blob
|
history
diff --git
a/src/OCCViewer/OCCViewer_Utilities.cxx
b/src/OCCViewer/OCCViewer_Utilities.cxx
index d57f3378577d0afe8c7bd69c1e84d18c0b59433f..506b9dc15f0e5e678cfd941d66046d07cf2c34ce 100644
(file)
--- a/
src/OCCViewer/OCCViewer_Utilities.cxx
+++ b/
src/OCCViewer/OCCViewer_Utilities.cxx
@@
-43,7
+43,9
@@
Handle(Image_PixMap) OCCViewer_Utilities::imageToPixmap( const QImage& anImage )
Handle(Image_PixMap) aPixmap = new Image_PixMap();
if ( !anImage.isNull() ) {
aPixmap->InitTrash( Image_PixMap::ImgBGRA, anImage.width(), anImage.height() );
+#if OCC_VERSION_LARGE < 0x07050000
aPixmap->SetTopDown( Standard_True );
+#endif
const uchar* aImageBytes = anImage.bits();