summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java12
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java4
-rw-r--r--sw/source/uibase/uno/unomod.cxx2
3 files changed, 9 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
index 15c42c68310d..9d12789ca1e8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
@@ -83,9 +83,9 @@ public class SwAccessibleEndnoteView extends TestCase {
xController);
XPropertySet xPropSet = xViewSetSup.getViewSettings();
- //change zoom value to 10%
+ //change zoom value to 20%
//footer should be in the vissible area of the document
- xPropSet.setPropertyValue("ZoomValue", Short.valueOf("10"));
+ xPropSet.setPropertyValue("ZoomValue", Short.valueOf("20"));
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
@@ -105,10 +105,10 @@ public class SwAccessibleEndnoteView extends TestCase {
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
- //change zoom value to 130%
- PropSet.setPropertyValue("ZoomValue", Short.valueOf("15"));
- //and back to 10%
- PropSet.setPropertyValue("ZoomValue", Short.valueOf("10"));
+ //change zoom value to 21%
+ PropSet.setPropertyValue("ZoomValue", Short.valueOf("21"));
+ //and back to 20%
+ PropSet.setPropertyValue("ZoomValue", Short.valueOf("20"));
} catch ( com.sun.star.lang.WrappedTargetException e ) {
} catch ( com.sun.star.lang.IllegalArgumentException e ) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
index 0292396eaa80..f3b23fbdf7cc 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
@@ -104,8 +104,8 @@ public class SwAccessibleTextGraphicObject extends TestCase {
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
- //change zoom value to 15%
- PropSet.setPropertyValue("ZoomValue", Short.valueOf("15"));
+ //change zoom value to 20%
+ PropSet.setPropertyValue("ZoomValue", Short.valueOf("20"));
//and back to 100%
PropSet.setPropertyValue("ZoomValue", Short.valueOf("100"));
} catch ( com.sun.star.lang.WrappedTargetException e ) {
diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx
index 54c2c3a50940..83b5f7adbff5 100644
--- a/sw/source/uibase/uno/unomod.cxx
+++ b/sw/source/uibase/uno/unomod.cxx
@@ -629,7 +629,7 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
case HANDLE_VIEWSET_ZOOM :
{
sal_Int16 nZoom = 0;
- if(!(rValue >>= nZoom) || nZoom > 1000 || nZoom < 5)
+ if(!(rValue >>= nZoom) || nZoom > MAXZOOM || nZoom < MINZOOM)
throw lang::IllegalArgumentException();
mpViewOption->SetZoom(static_cast<sal_uInt16>(nZoom));
mbApplyZoom = true;