summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/remotecontrol/Receiver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/remotecontrol/Receiver.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Receiver.cxx51
1 files changed, 25 insertions, 26 deletions
diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx
index 04b50f9a3936..6a987a67e877 100644
--- a/sd/source/ui/remotecontrol/Receiver.cxx
+++ b/sd/source/ui/remotecontrol/Receiver.cxx
@@ -136,33 +136,32 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand )
const css::geometry::RealPoint2D pos(x,y);
// std::cerr << "Pointer at ("<<pos.X<<","<<pos.Y<<")" << std::endl;
- if (xSlideShow.is()) try
- {
- // std::cerr << "pointer_coordination in the is" << std::endl;
- xSlideShow->setProperty(
- beans::PropertyValue( "PointerPosition" ,
- -1,
- makeAny( pos ),
- beans::PropertyState_DIRECT_VALUE ) );
- }
- catch ( Exception& )
- {
- SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerPosition(), "
- "exception caught: " << exceptionToString( cppu::getCaughtException() ));
- }
-
- if (xSlideShow.is()) try
- {
- xSlideShow->setProperty(
- beans::PropertyValue( "PointerVisible" ,
- -1,
- makeAny( true ),
- beans::PropertyState_DIRECT_VALUE ) );
- }
- catch ( Exception& )
+ if (xSlideShow.is())
{
- SAL_WARN( "sdremote", "sd::SlideShowImpl::setPointerMode(), "
- "exception caught: " << exceptionToString( cppu::getCaughtException() ));
+ try
+ {
+ // std::cerr << "pointer_coordination in the is" << std::endl;
+ xSlideShow->setProperty(beans::PropertyValue("PointerPosition", -1, makeAny(pos),
+ beans::PropertyState_DIRECT_VALUE));
+ }
+ catch (Exception&)
+ {
+ SAL_WARN("sdremote", "sd::SlideShowImpl::setPointerPosition(), "
+ "exception caught: "
+ << exceptionToString(cppu::getCaughtException()));
+ }
+
+ try
+ {
+ xSlideShow->setProperty(beans::PropertyValue("PointerVisible", -1, makeAny(true),
+ beans::PropertyState_DIRECT_VALUE));
+ }
+ catch (Exception&)
+ {
+ SAL_WARN("sdremote", "sd::SlideShowImpl::setPointerMode(), "
+ "exception caught: "
+ << exceptionToString(cppu::getCaughtException()));
+ }
}
SAL_INFO( "sdremote", "Pointer started, we display the pointer on screen" );