drawshape.cxx (78d93489) | drawshape.cxx (a72d41dc) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 196 unchanged lines hidden (view full) --- 205 if( maBounds.isEmpty() ) 206 { 207 // zero-sized shapes are effectively invisible, 208 // thus, we save us the rendering... 209 return true; 210 } 211 212 // redraw all view shapes, by calling their update() method | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 196 unchanged lines hidden (view full) --- 205 if( maBounds.isEmpty() ) 206 { 207 // zero-sized shapes are effectively invisible, 208 // thus, we save us the rendering... 209 return true; 210 } 211 212 // redraw all view shapes, by calling their update() method |
213 ViewShape::RenderArgs aViewRenderArgs = getViewRenderArgs(); |
|
213 if( ::std::count_if( maViewShapes.begin(), 214 maViewShapes.end(), 215 ::boost::bind<bool>( 216 ::boost::mem_fn( &ViewShape::update ), // though _theoretically_, 217 // bind should eat this even 218 // with _1 being a shared_ptr, 219 // it does _not_ for MSVC without 220 // the extra mem_fn. WTF. 221 _1, 222 ::boost::cref( mpCurrMtf ), | 214 if( ::std::count_if( maViewShapes.begin(), 215 maViewShapes.end(), 216 ::boost::bind<bool>( 217 ::boost::mem_fn( &ViewShape::update ), // though _theoretically_, 218 // bind should eat this even 219 // with _1 being a shared_ptr, 220 // it does _not_ for MSVC without 221 // the extra mem_fn. WTF. 222 _1, 223 ::boost::cref( mpCurrMtf ), |
223 ::boost::cref( 224 getViewRenderArgs() ), | 224 ::boost::cref( aViewRenderArgs ), |
225 nUpdateFlags, 226 isVisible() ) ) 227 != static_cast<ViewShapeVector::difference_type>(maViewShapes.size()) ) 228 { 229 // at least one of the ViewShape::update() calls did return 230 // false - update failed on at least one ViewLayer 231 return false; 232 } --- 1118 unchanged lines hidden --- | 225 nUpdateFlags, 226 isVisible() ) ) 227 != static_cast<ViewShapeVector::difference_type>(maViewShapes.size()) ) 228 { 229 // at least one of the ViewShape::update() calls did return 230 // false - update failed on at least one ViewLayer 231 return false; 232 } --- 1118 unchanged lines hidden --- |