1
0
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:
kgv 2014-06-26 12:50:30 +04:00 committed by apn
parent 2c5643b6a7
commit c1c1aefa71
2 changed files with 18 additions and 1 deletions

View File

@ -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
View 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