From b8016f8b15fd4d572edf93863460b8584fdff367 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 15 Jan 2010 00:18:08 +0000
Subject: caption 3.1m (14jan10)

git-svn-id: svn://tug.org/texlive/trunk@16715 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/caption/caption3.sty | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/caption/caption3.sty')

diff --git a/Master/texmf-dist/tex/latex/caption/caption3.sty b/Master/texmf-dist/tex/latex/caption/caption3.sty
index 37b6efe7044..226e7193509 100644
--- a/Master/texmf-dist/tex/latex/caption/caption3.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption3.sty
@@ -28,7 +28,7 @@
 %% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption3}[2010/01/09 v3.1l caption3 kernel (AR)]
+\ProvidesPackage{caption3}[2010/01/14 v3.1m caption3 kernel (AR)]
 \providecommand*\@nameundef[1]{%
   \expandafter\let\csname #1\endcsname\@undefined}
 \providecommand\l@addto@macro[2]{%
@@ -1726,11 +1726,13 @@
     \let\@dottedxxxline\sf@NEW@dottedxxxline
     \let\sf@subfloat\sf@NEW@subfloat
     \DeclareRobustCommand*\subref{\@ifstar\sf@@subref\sf@subref}%
-    \renewcommand*\sf@updatecaptionlist[4]{%
-      \xdef\sf@captionlist{%
-        \sf@captionlist,%
-            {\protect\numberline{\@subcaplabel}\noexpand{\ignorespaces #2}}%
-            {\@currentHref}}}%
+    \@ifpackageloaded{hyperref}{%
+      \renewcommand*\sf@updatecaptionlist[4]{%
+        \xdef\sf@captionlist{%
+          \sf@captionlist,%
+              {\protect\numberline{\@subcaplabel}\noexpand{\ignorespaces #2}}%
+              {\@currentHref}}}%
+    }{}%
   \fi
   \let\sf@NEW@dottedxxxline\@undefined
   \let\sf@NEW@subfloat\@undefined}
-- 
cgit v1.2.3

