mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0025027: Visualization - 2D layer viewport is updated incorrectly on resize
Test case for issue CR25027
This commit is contained in:
parent
2c5643b6a7
commit
c1c1aefa71
@ -346,7 +346,7 @@ void Visual3d_ViewManager::Redraw() const
|
||||
{
|
||||
MyDefinedView.Value(i)->Window()->Size (aWidth, aHeight);
|
||||
aWidthMax = Max (aWidthMax, aWidth);
|
||||
aHeightMax = Max (aHeightMax, aWidth);
|
||||
aHeightMax = Max (aHeightMax, aHeight);
|
||||
}
|
||||
|
||||
if (!MyUnderLayer.IsNull())
|
||||
|
17
tests/bugs/vis/bug25027
Executable file
17
tests/bugs/vis/bug25027
Executable file
@ -0,0 +1,17 @@
|
||||
puts "============"
|
||||
puts "OCC25027"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Visualization - 2D layer viewport is updated incorrectly on resize
|
||||
#######################################################################
|
||||
|
||||
box b 1 2 3
|
||||
vinit w=1024 h=512
|
||||
vsetdispmode 1
|
||||
vdisplay b
|
||||
vfit
|
||||
vcolorscale 10 20 100 16 2 0 0
|
||||
vmoveto 512 250
|
||||
|
||||
set only_screen 1
|
Loading…
x
Reference in New Issue
Block a user